`sudo modprobe nvidia NVreg_EnableStreamMemOPs=1` doesn't work

I can’t seem to enable CUDA Stream Memory Operations. I tried executing sudo modprobe nvidia NVreg_EnableStreamMemOPs=1 and also tried adding options nvidia NVreg_EnableStreamMemOPs=1 to /etc/modprobe.d/nvidia.conf and updating initramfs and rebooting.

cuDeviceGetAttribute(&attr, CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_MEM_OPS, 0) keeps returning a value of attr as 0.

My CUDA version is 10.1 and my Nvidia driver is nvidia-450 version 450.51.06-0ubuntu1.

I check my system of Ubuntu 18.04. There are no files such as nvidia.conf or nvidia-kernel-common.conf in the directory of /etc/modprobe.d/. The only file in the directory is nvidia-installer-disable-nouveau.conf.

So it is quite apparent that I could not add “NVreg_EnableStreamMemOPs=1”
into the directory. I guess that you may have such the phenomenon.

For the CUPTI, it is quite stealthy. I am figuring how to solve the issue.


mikechen6688

3m

I check my system of Ubuntu 18.04. There are no files such as nvidia.conf or nvidia-kernel-common.conf in the directory of /etc/modprobe.d/. The only file in the directory is nvidia-installer-disable-nouveau.conf.

So it is quite apparent that I could not add “NVreg_EnableStreamMemOPs=1”
into the directory. I guess that you may have such the phenomenon.

For the CUPTI, it is quite stealthy. I am figuring how to solve the issue.