cudnnCreate() private method

private cudnnCreate ( cudnnHandle &handle ) : cudnnStatus
handle cudnnHandle
return cudnnStatus
Esempio n. 1
0
 /// <summary>
 /// </summary>
 public CudaDNNContext()
 {
     _handle = new cudnnHandle();
     res     = CudaDNNNativeMethods.cudnnCreate(ref _handle);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnCreate", res));
     if (res != cudnnStatus.Success)
     {
         throw new CudaDNNException(res);
     }
 }