make error
Hello, miniAero is an interesting project. I am trying to "make" the project, and I have finished the first step:
[mpe@gold-c01 make]$ ./do-cmake-miniaero-gcc-cuda
-- The C compiler identification is GNU 4.4.6
-- The CXX compiler identification is GNU 4.4.6
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /app1/centos6.3/GPU/cuda-6.5 (found version "6.5")
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
KokkosArray_ENABLE_DeviceCuda
TPL_ENABLE_Pthread
-- Build files have been written to: /home/svu/mpe/miniAero-master/kokkos/make
but when I try to "make", it reported errors:
/home/svu/mpe/cmake-3.7.0-rc3-Linux-x86_64/bin/cmake -H/home/svu/mpe/miniAero-master/kokkos -B/home/svu/mpe/miniAero-master/kokkos/make --check-build-system CMakeFiles/Makefile.cmake 0
/home/svu/mpe/cmake-3.7.0-rc3-Linux-x86_64/bin/cmake -E cmake_progress_start /home/svu/mpe/miniAero-master/kokkos/make/CMakeFiles /home/svu/mpe/miniAero-master/kokkos/make/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/svu/mpe/miniAero-master/kokkos/make'
make -f CMakeFiles/kokkos_devicehost.dir/build.make CMakeFiles/kokkos_devicehost.dir/depend
make[2]: Entering directory `/home/svu/mpe/miniAero-master/kokkos/make'
cd /home/svu/mpe/miniAero-master/kokkos/make && /home/svu/mpe/cmake-3.7.0-rc3-Linux-x86_64/bin/cmake -E cmake_depends "Unix Makefiles" /home/svu/mpe/miniAero-master/kokkos /home/svu/mpe/miniAero-master/kokkos /home/svu/mpe/miniAero-master/kokkos/make /home/svu/mpe/miniAero-master/kokkos/make /home/svu/mpe/miniAero-master/kokkos/make/CMakeFiles/kokkos_devicehost.dir/DependInfo.cmake --color=
Scanning dependencies of target kokkos_devicehost
make[2]: Leaving directory `/home/svu/mpe/miniAero-master/kokkos/make'
make -f CMakeFiles/kokkos_devicehost.dir/build.make CMakeFiles/kokkos_devicehost.dir/build
make[2]: Entering directory `/home/svu/mpe/miniAero-master/kokkos/make'
make[2]: Warning: File `CMakeFiles/kokkos_devicehost.dir/depend.make' has modification time 0.11 s in the future
[ 2%] Building CXX object CMakeFiles/kokkos_devicehost.dir/kokkos/core/src/Threads/Kokkos_ThreadsExec.cpp.o
/usr/bin/g++ -I/home/svu/mpe/miniAero-master/kokkos/make/kokkos/core/src -I/home/svu/mpe/miniAero-master/kokkos/kokkos/core/src -I/home/svu/mpe/miniAero-master/kokkos/make/kokkos/core/src/impl -I/home/svu/mpe/miniAero-master/kokkos/kokkos/core/src/impl -I/home/svu/mpe/miniAero-master/kokkos/make/kokkos/core/src/Cuda -I/home/svu/mpe/miniAero-master/kokkos/kokkos/core/src/Cuda -I/app1/centos6.3/GPU/cuda-6.5/include -O3 -DNDEBUG -o CMakeFiles/kokkos_devicehost.dir/kokkos/core/src/Threads/Kokkos_ThreadsExec.cpp.o -c /home/svu/mpe/miniAero-master/kokkos/kokkos/core/src/Threads/Kokkos_ThreadsExec.cpp
In file included from /home/svu/mpe/miniAero-master/kokkos/kokkos/core/src/impl/Kokkos_Traits.hpp:48,
from /home/svu/mpe/miniAero-master/kokkos/kokkos/core/src/Kokkos_Layout.hpp:52,
from /home/svu/mpe/miniAero-master/kokkos/kokkos/core/src/Kokkos_Threads.hpp:49,
from /home/svu/mpe/miniAero-master/kokkos/kokkos/core/src/Threads/Kokkos_ThreadsExec.cpp:47:
/home/svu/mpe/miniAero-master/kokkos/kokkos/core/src/Kokkos_Macros.hpp:49:31: error: KokkosCore_config.h: No such file or directory
make[2]: *** [CMakeFiles/kokkos_devicehost.dir/kokkos/core/src/Threads/Kokkos_ThreadsExec.cpp.o] Error 1
make[2]: Leaving directory `/home/svu/mpe/miniAero-master/kokkos/make'
make[1]: *** [CMakeFiles/kokkos_devicehost.dir/all] Error 2
make[1]: Leaving directory `/home/svu/mpe/miniAero-master/kokkos/make'
make: *** [all] Error 2
Is there any problem with kokkos? Should I install the Kokkos first?
Thank you!
I will fix this. The CMake build system was pretty hokey.
Turns out the version posted on github was actually old, and didn't reflect the latest svn repo. I am posting the full update including bug fixes soon.
@crtrott that's because we posted the previous release versions of the codes unless they were owned.
Jup I know :-). Got it almost fixed up.
Ok pushed it. I removed the CMakeBuild system and replaced it with the default Kokkos GNU Make system. So it builds now like the Kokkos examples, or miniMD. Let me know if you run into any troubles. This should build and test with openmp enabled using mpicxx as your compiler:
make -f Makefile.mpi -j test
Btw: you need at least GCC 4.7.2 For Cuda the minimum version is 7.5.
Thank you! My CUDA is 6.5. If I don't use CUDA, it may work well.
You can simply download a newer Cuda, but you would also need at least a GPU with compute capability 3.0. The compiler you used in your first post was only gcc 4.4.6. That one you need to upgrade.