amonakov / primus

Low-overhead client-side GPU offloading
ISC License
216 stars 20 forks source link

primusrun on CUDA Applications not Recognizing GPU #205

Closed lambda-11235 closed 5 years ago

lambda-11235 commented 5 years ago

When I run the 0_Simple/matrixMul sample from the CUDA install with primusrun I get

[Matrix Multiply Using CUDA] - Starting...
CUDA error at ../../common/inc/helper_cuda.h:708 code=38(cudaErrorNoDevice) "cudaGetDeviceCount(&device_count)"

Note that if I use optirun or optirun -b primus I get

[Matrix Multiply Using CUDA] - Starting...
GPU Device 0: "GeForce 940M" with compute capability 5.0

MatrixA(320,320), MatrixB(640,320)
Computing result using CUDA Kernel...
done
Performance= 114.31 GFlop/s, Time= 1.147 msec, Size= 131072000 Ops, WorkgroupSize= 1024 threads/block
Checking computed result for correctness: Result = PASS

NOTE: The CUDA Samples are not meant for performancemeasurements. Results may vary when GPU Boost is enabled.

I'm running Manjaro latest release with a 4.19 kernel and an NVIDIA GeForce 940M GPU.

lambda-11235 commented 5 years ago

nvm