Пример #1
0
 public void VerifyAvailableGPUsAreWorking()
 {
     for (int i = 0; i < NumberOfAvailableGpus; ++i)
     {
         using (CudaManager cudaManager = GetCudaManagerForThread()) {
             KernelManager kernels = new KernelManager(cudaManager);
             kernels["TestKernel"].ExecuteTask();
         }
     }
 }
Пример #2
0
 public KernelRunner(KernelManager kernelManager, CudaKernel cudaKernel)
 {
     _manager        = kernelManager;
     Kernel          = cudaKernel;
     _extraArguments = new object[0];
 }