Package cl.niclabs.skandium

Examples of cl.niclabs.skandium.Skandium.shutdown()


      System.out.println((System.currentTimeMillis() - init)+"[ms]: "+out.toArray());
      for(int i=0; i<out.size()-2;i++) {
        if(out.get(i) > out.get(i+1)) throw new Exception("Not sorted! "+ i + " "+ (i+1));
      }

      skandium.shutdown();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
 
View Full Code Here


      System.out.println((System.currentTimeMillis() - init)+"[ms]: "+out.toArray());
      for(int i=0; i<out.size()-2;i++) {
        if(out.get(i) > out.get(i+1)) throw new Exception("Not sorted! "+ i + " "+ (i+1));
           }
     
      skandium.shutdown();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
       
View Full Code Here

         //6. Block for the results
         Count result = future.get();
         System.out.println(result+" in "+(System.currentTimeMillis() - init)+"[ms]");
        
         //7. Shutdown the system
         skandium.shutdown();
        
    }
}
View Full Code Here

         //6. Block for the results
         Matrix result = future.get();
         System.out.println("Done:"+result.length()+"x"+result.length()+ "in "+(System.currentTimeMillis() - init)+"[ms]");
    
         //7. Shutdown the system
         skandium.shutdown();
    }
   
    /**
     * Creates a new Matrix with random content.
     * @param size The width and height of the desired matrix
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.