Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
abc4a81e
Commit
abc4a81e
authored
Apr 15, 2010
by
Christopher Bruns
Browse files
More changes to get cuda build working on t0.simtk.org with just the one
FindCUDA.cmake.
parent
e706d710
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
CMakeLists.txt
CMakeLists.txt
+3
-3
platforms/cuda/CMakeLists.txt
platforms/cuda/CMakeLists.txt
+4
-2
No files found.
CMakeLists.txt
View file @
abc4a81e
...
...
@@ -319,7 +319,7 @@ ADD_SUBDIRECTORY(platforms/reference/tests)
SET
(
FINDCUDA_DIR
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake_modules/FindCUDA"
)
SET
(
CUDA_BUILD_CUBIN OFF
)
FIND_PACKAGE
(
CUDA QUIET
)
IF
(
FOUND_CUDA
)
IF
(
FOUND_CUDA
RT
)
IF
(
NOT CUDA_NVCC_FLAGS
)
SET
(
FLAGS
""
)
# Note that cmake will insert semicolons between these item automatically...
...
...
@@ -359,9 +359,9 @@ IF(FOUND_CUDA)
CACHE STRING
"Semicolon delimit multiple arguments"
FORCE
)
ENDIF
(
NOT HAS_NVCC_FLAG
)
ENDIF
(
MSVC
)
ELSE
(
FOUND_CUDA
)
ELSE
(
FOUND_CUDA
RT
)
SET
(
OPENMM_BUILD_CUDA_LIB OFF CACHE BOOL
"Build OpenMMCuda library for Nvidia GPUs"
)
ENDIF
(
FOUND_CUDA
)
ENDIF
(
FOUND_CUDA
RT
)
IF
(
OPENMM_BUILD_CUDA_LIB
)
ADD_SUBDIRECTORY
(
platforms/cuda
)
ENDIF
(
OPENMM_BUILD_CUDA_LIB
)
...
...
platforms/cuda/CMakeLists.txt
View file @
abc4a81e
...
...
@@ -21,8 +21,10 @@ try_run(RUN_RESULT_VAR COMPILE_RESULT_VAR
${
CMAKE_BINARY_DIR
}
${
CMAKE_CURRENT_SOURCE_DIR
}
/tests/has_cuda_gpu.c
CMAKE_FLAGS
-DINCLUDE_DIRECTORIES:STRING=
${
CUDA_TOOLKIT_INCLUDE
}
-DLINK_LIBRARIES:STRING=
${
CUDA_CUDART_LIBRARY
}
# -DINCLUDE_DIRECTORIES:STRING=${CUDA_TOOLKIT_INCLUDE}
# -DLINK_LIBRARIES:STRING=${CUDA_CUDART_LIBRARY}
-DINCLUDE_DIRECTORIES:STRING=
${
CUDA_INCLUDE
}
-DLINK_LIBRARIES:STRING=
${
CUDA_TARGET_LINK
}
COMPILE_OUTPUT_VARIABLE COMPILE_OUTPUT_VAR
RUN_OUTPUT_VARIABLE RUN_OUTPUT_VAR
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment