![]() Change directory to bin, generate Makefile from CMakeLists. Then create bin (choose another name if you want) directory next to src. So, create CMakeLists.txt file and place it in your sources directory (say src). ![]() It aso switches on new (phah, new for 3 years :)) C++ standart. I prefer to choose one to reduce compilation time. single dollar sign and double dollar sign. using (sort list) sort list and remove duplicates. ![]() I’ve also included lines for newer GPU architectures (feel free to uncomment them). using (warning text) check make rules (for debug) string functions. This file automatically adds all sources in the same directory it is placed. ![]() CMAKE_MINIMUM_REQUIRED( VERSION 2.8) PROJECT( lbmslv) FIND_PACKAGE( CUDA REQUIRED) FIND_PACKAGE( MPI REQUIRED) INCLUDE( FindCUDA) INCLUDE_DIRECTORIES( /usr/local/cuda/include $) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |