Assignment 6 - cmake issues

75 views
Skip to first unread message

David Liu

unread,
Mar 30, 2020, 11:53:15 PM3/30/20
to Parallel and Distributed Systems at SFU (431)
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?

David Liu

unread,
Mar 30, 2020, 11:56:49 PM3/30/20
to Parallel and Distributed Systems at SFU (431)
My mistake. This error occurs after "cmake ../" not "make".

Arrvindh Shriraman

unread,
Mar 31, 2020, 12:05:36 AM3/31/20
to parallel-s...@googlegroups.com
Please use only machines specified 

--
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.
--
Arrvindh Shriraman
Associate Professor
Computer Science
Simon Fraser University

David Liu

unread,
Mar 31, 2020, 12:26:43 AM3/31/20
to Parallel and Distributed Systems at SFU (431)
Oops... thank you.


On Monday, March 30, 2020 at 9:05:36 PM UTC-7, Arrvindh Shriraman wrote:
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.

Andy Liu

unread,
Mar 31, 2020, 5:09:21 AM3/31/20
to Parallel and Distributed Systems at SFU (431)
Hi,

I'm having a CMake issue as well and i'm connected to one of the specified machines, specifically "asb9840u-b03.csil.sfu.ca". I get this error when I run "cmake ../" in the /build/ folder

Annotation 2020-03-31 020744.jpg

Message has been deleted
Message has been deleted

Aaron Hong

unread,
Apr 1, 2020, 4:44:59 PM4/1/20
to Parallel and Distributed Systems at SFU (431)
I have same problem after git pull. Before that, cmake ../ worked fine.

在 2020年3月31日星期二 UTC-7上午2:09:21,Andy Liu写道:

Arrvindh Shriraman

unread,
Apr 1, 2020, 4:47:56 PM4/1/20
to Parallel and Distributed Systems at SFU (431)
<<<<<<< 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
Reply all
Reply to author
Forward
0 new messages