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