CUDA toolkit error for MAC: cannot open output file 'vectorAdd.o' :, Access denied

I try to run the CUDA toolkit on a MAC, but when I compile the CUDA sample programs, I get this error:

cannot open output file 'vectorAdd.o': 'Error opening output file' vectorAdd.o ': Permission denied'

I checked the environment variables and driver installation, and everything seems to be OK.

Do you have any clue what might be the problem?

Thank!

Momira

+4
source share
1 answer

If you copy the entire sample folder and its contents to your home directory, you can compile the samples without sudo.

, , , root -, , , admin.

( ), sudo. , samples :

sudo chown -R your-user-name /Developer/NVIDIA/CUDA-7.0/samples
+14

Source: https://habr.com/ru/post/1584054/


All Articles