mkdir build
cd build
cmake ../
make
I encountered the follow error:
CMake Error at /usr/share/cmake-3.10/Modules/FindCUDA.cmake:682 (message):
Specify CUDA_TOOLKIT_ROOT_DIR
Call Stack (most recent call first):
CMakeLists.txt:5 (find_package)
-- Configuring incomplete, errors occurred!
This error occurs on my local machine and using ssh on csil machines.
Any ideas?
--
You received this message because you are subscribed to the Google Groups "Parallel and Distributed Systems at SFU (431)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to parallel-systems...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/parallel-systems-sfu/8d7f4ad3-ff61-49a1-b5fa-31d225375c5c%40googlegroups.com.
Please use only machines specified
On Mon, Mar 30, 2020 at 20:53 David Liu <david....@gmail.com> wrote:
I am having trouble with cmake with this assignment and I am wondering if anyone else has the same problem. After cloning and the following commands:mkdir build cd build cmake ../ make
I encountered the follow error:
CMake Error at /usr/share/cmake-3.10/Modules/FindCUDA.cmake:682 (message):
Specify CUDA_TOOLKIT_ROOT_DIR
Call Stack (most recent call first):
CMakeLists.txt:5 (find_package)
-- Configuring incomplete, errors occurred!
This error occurs on my local machine and using ssh on csil machines.
Any ideas?--
You received this message because you are subscribed to the Google Groups "Parallel and Distributed Systems at SFU (431)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to parallel-systems-sfu+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/parallel-systems-sfu/8d7f4ad3-ff61-49a1-b5fa-31d225375c5c%40googlegroups.com.
| <<<<<<< HEAD | |
| cmake_minimum_required(VERSION 2.8) | |
| project(img2gpu) | |
| find_package(CUDA REQUIRED) | |
| # Hardcoding this on the asb9840u-b01. Unable to find the non standard cuda directory | |
| set(CUDA_TOOLKIT_ROOT_DIR "/usr/local/cuda-10.0/") | |
| set(CMAKE_CXX_FLAG "-g -Wall -D_FORCE_INLINES") | |
| # Adjust according to your platform | |
| set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-arch compute_35) | |
| #set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS}; -D_FORCE_INLINES -O3 -gencode arch=compute_35,code=sm_35) | |
| # The second option is to make use of utility functions defined in samples/common/inc | |
| include_directories(${CUDA_INCLUDE_DIRS} "./common/inc") | |
| message(STATUS ${CUDA_INCLUDE_DIRS}) | |
| message(STATUS ${CUDA_TOOLKIT_ROOT_DIR}) | |
| # set(CMAKE_MODULE_PATH "/usr/share/cmake/Modules" ${CMAKE_MODULE_PATH}) | |
| set(CPPSRCS | |
| main.cpp | |
| histogram-equalization.cpp | |
| contrast-enhancement.cpp | |
| ) | |
| set(CUDASRCS | |
| # 1.cu | |
| # 2.cu | |
| # etc | |
| ) | |
| CUDA_ADD_EXECUTABLE(${PROJECT_NAME} ${CUDASRCS} ${CPPSRCS}) | |
| ||||||| empty tree | |
| ======= Remove this from your Cmake file |