diff options
author | Adam Lerer <alerer@fb.com> | 2015-04-18 04:20:51 +0300 |
---|---|---|
committer | Adam Lerer <alerer@fb.com> | 2015-04-29 17:47:13 +0300 |
commit | 47a2f6de252c2254234edfc1c6115229b5383bac (patch) | |
tree | dfd8992e4c6b8d8353e573ebfc4a7ec8b72a354a /CMakeLists.txt | |
parent | 0903d5763025d163c575b11d5a51ce3d760c3ad1 (diff) |
Auto device mode, plus allocation helper functions.
This diff introduces an alternative way of writing multi-GPU cutorch
code. In this mode, the location of each tensor is specified, and the
appropriate GPU for each kernel is determined automatically based on the
location of its argument tensors. It's backwards-compatible and interoperable
with the old-style multi-GPU API.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f8307f2..e9f2c4e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ IF(APPLE) ENDIF(APPLE) LIST(APPEND CUDA_NVCC_FLAGS "-arch=sm_20") -SET(CMAKE_C_FLAGS "-std=c99") +SET(CMAKE_C_FLAGS "-std=c99 -Werror=implicit-function-declaration") INCLUDE_DIRECTORIES(${CUDA_INCLUDE_DIRS}) INCLUDE_DIRECTORIES("${CUDA_SDK_ROOT_DIR}/common/inc") |