I'm trying to compile CUDA samples. If I cd to the sample, and then run make
it gives me an error:
macair93278:samples r8t$ cd 0_Simple/UnifiedMemoryStreams/
macair93278:UnifiedMemoryStreams r8t$ ls
Makefile Makefile-e NsightEclipse.xml UnifiedMemoryStreams.cu readme.txt
macair93278:UnifiedMemoryStreams r8t$ make
There's a couple warnings, then
clang: warning: argument unused during compilation: '-fopenmp'
ld: library not found for -lgomp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
-----------------------------------------------------------------------------------------------
WARNING - OpenMP is unable to compile
-----------------------------------------------------------------------------------------------
This CUDA Sample cannot be built if the OpenMP compiler is not set up correctly.
This will be a dry-run of the Makefile.
For more information on how to set up your environment to build and run this sample, please refer the CUDA Samples documentation and release notes
Thanks for any help.