Last active
November 18, 2016 19:54
-
-
Save ernstki/05d3e6a804ab130fee4aa80152c3ab34 to your computer and use it in GitHub Desktop.
Patch file to get Udacity CS344 course materials to compile on OSC's Oakley cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- CMakeLists.txt.orig 2016-11-13 18:49:46.528795000 -0500 | |
+++ CMakeLists.txt 2016-11-13 18:52:36.459490000 -0500 | |
@@ -21,7 +21,6 @@ | |
# to make sure more people can easily run class code without knowing | |
# about this compiler argument | |
set(CUDA_NVCC_FLAGS " | |
- -ccbin /usr/bin/clang; | |
-gencode;arch=compute_30,code=sm_30; | |
-gencode;arch=compute_35,code=sm_35; | |
-gencode;arch=compute_35,code=compute_35; | |
@@ -29,22 +28,26 @@ | |
-gencode;arch=compute_11,code=sm_11; | |
-gencode;arch=compute_12,code=sm_12; | |
-gencode;arch=compute_13,code=sm_13;") | |
+ # Clang is Apple's LLVM-based C/C++ compiler; n/a on Oakley | |
+ #-ccbin /usr/bin/clang; | |
# add -Wextra compiler flag for gcc compilations | |
if (UNIX) | |
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} "-Xcompiler -Wextra") | |
- set(CMAKE_CXX_FLAGS "-stdlib=libstdc++") | |
+ # This '-stdlib' flag is probably only valid on OS X (clang) | |
+ #set(CMAKE_CXX_FLAGS "-stdlib=libstdc++") | |
endif (UNIX) | |
# add debugging to CUDA NVCC flags. For NVidia's NSight tools. | |
set(CUDA_NVCC_FLAGS_DEBUG ${CUDA_NVCC_FLAGS_DEBUG} "-G") | |
- add_subdirectory (HW1) | |
- add_subdirectory (HW2) | |
- add_subdirectory (HW3) | |
- add_subdirectory (HW4) | |
- add_subdirectory (HW5) | |
- add_subdirectory (HW6) | |
+ # Source: https://github.com/udacity/cs344/pull/20 | |
+ add_subdirectory (Problem\ Sets/Problem\ Set\ 1) | |
+ add_subdirectory (Problem\ Sets/Problem\ Set\ 2) | |
+ add_subdirectory (Problem\ Sets/Problem\ Set\ 3) | |
+ add_subdirectory (Problem\ Sets/Problem\ Set\ 4) | |
+ add_subdirectory (Problem\ Sets/Problem\ Set\ 5) | |
+ add_subdirectory (Problem\ Sets/Problem\ Set\ 6) | |
else(CUDA_FOUND) | |
message("CUDA is not installed on this system.") | |
endif() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment