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.
When I run the 0_Simple/matrixMul sample from the CUDA install with
primusrun
I getNote that if I use
optirun
oroptirun -b primus
I getI'm running Manjaro latest release with a 4.19 kernel and an NVIDIA GeForce 940M GPU.