osx - CUDA toolkit error on MAC: unable to open output file 'vectorAdd.o':, Permission denied -


i trying run cuda toolkit on mac, when compiling cuda sample programs error:

unable open output file 'vectoradd.o': 'error opening output file 'vectoradd.o': permission denied'

i checked environmental variables , driver installation , seems ok.

do have clue problem?

thanks!

momir

if copy whole samples folder , contents home directory, should able compile samples there without sudo.

the problem directories contain sample files owned root , not writable admin users, compiler cannot create new output files , folders needs if running admin user.

if want compile samples in situ (as installation guide seems suggest), can compile them using sudo. alternatively can change ownership of samples directory , subdirectories recursively:

sudo chown -r your-user-name /developer/nvidia/cuda-7.0/samples 

Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -