Exemplo n.º 1
0
 public PrimeContext()
 {
     CheckError(PrimeApi.rtpContextCreate(RTPcontexttype.RTP_CONTEXT_TYPE_CUDA, out InternalPtr));
 }
Exemplo n.º 2
0
 public PrimeContext(bool useCuda = false)
 {
     _buffers = new List <IDisposable>();
     CheckError(PrimeApi.rtpContextCreate(useCuda ? RTPcontexttype.RTP_CONTEXT_TYPE_CUDA : RTPcontexttype.RTP_CONTEXT_TYPE_CPU, out InternalPtr));
     CheckError(PrimeApi.rtpContextSetCudaDeviceNumbers(InternalPtr, 0, 0));
 }