From e28cc16675577560b64d4549eb106af8acf398e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=28Hu=C3=A1ng=29=E7=93=92=28Z=C3=A0n=29?= <13297503+pmixer@users.noreply.github.com> Date: Wed, 14 Apr 2021 16:16:45 +0800 Subject: [PATCH 1/3] use T4 and CUDA 11 on google colab now. --- src/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b01a08f..57d9754 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -5,7 +5,7 @@ # quantm@unist.ac.kr kast.jo@googlemail.com msarahan@gmail.com ############################################################################ -cmake_minimum_required(VERSION 2.6 FATAL_ERROR) +cmake_minimum_required(VERSION 3.10 FATAL_ERROR) project(cs344) find_package(OpenCV REQUIRED) @@ -21,9 +21,7 @@ if(CUDA_FOUND) # to make sure more people can easily run class code without knowing # about this compiler argument set(CUDA_NVCC_FLAGS " - -gencode;arch=compute_30,code=sm_30; - -gencode;arch=compute_35,code=sm_35; - -gencode;arch=compute_35,code=compute_35;") + -gencode;arch=compute_75,code=sm_75;") # add -Wextra compiler flag for gcc compilations if (UNIX) From d3ab63762db44e81746a0754fab789bf61ce96e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=28Hu=C3=A1ng=29=E7=93=92=28Z=C3=A0n=29?= <13297503+pmixer@users.noreply.github.com> Date: Wed, 14 Apr 2021 16:59:17 +0800 Subject: [PATCH 2/3] Colab secretly switched to K80 when I was coding --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 57d9754..c69ad35 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -20,7 +20,7 @@ if(CUDA_FOUND) # whether to build x64. We tell it to support most devices, though, # to make sure more people can easily run class code without knowing # about this compiler argument - set(CUDA_NVCC_FLAGS " + set(CUDA_NVCC_FLAGS "-gencode;arch=compute_37,code=sm_37; -gencode;arch=compute_75,code=sm_75;") # add -Wextra compiler flag for gcc compilations From 4a680fe9bae336cd8eb490588df75bf7e618276b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=28Hu=C3=A1ng=29=E7=93=92=28Z=C3=A0n=29?= <13297503+pmixer@users.noreply.github.com> Date: Wed, 14 Apr 2021 20:03:26 +0800 Subject: [PATCH 3/3] In case Colab change to newer GPU in the future --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c69ad35..b137f92 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -21,7 +21,7 @@ if(CUDA_FOUND) # to make sure more people can easily run class code without knowing # about this compiler argument set(CUDA_NVCC_FLAGS "-gencode;arch=compute_37,code=sm_37; - -gencode;arch=compute_75,code=sm_75;") + -gencode;arch=compute_75,code=sm_75,compute_75;") # add -Wextra compiler flag for gcc compilations if (UNIX)