Skip to content

Instantly share code, notes, and snippets.

@ernstki
Last active November 18, 2016 19:54
Show Gist options
  • Save ernstki/05d3e6a804ab130fee4aa80152c3ab34 to your computer and use it in GitHub Desktop.
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
--- 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