Do not look for cuda.dll anymore.
This commit is contained in:
parent
207bfe5336
commit
817652c56c
@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# CUDA_FOUND
|
# CUDA_FOUND
|
||||||
# CUDA_INCLUDE_PATH
|
# CUDA_INCLUDE_PATH
|
||||||
# CUDA_LIBRARY
|
# CUDA_RUNTIME_LIBRARY
|
||||||
# CUDA_COMPILER
|
# CUDA_COMPILER
|
||||||
#
|
#
|
||||||
# It will also define the following macro:
|
# It will also define the following macro:
|
||||||
@ -36,14 +36,6 @@ FIND_PATH (CUDA_INCLUDE_PATH cuda_runtime.h
|
|||||||
${CUDA_COMPILER_SUPER_DIR}/include
|
${CUDA_COMPILER_SUPER_DIR}/include
|
||||||
${CUDA_COMPILER_DIR}
|
${CUDA_COMPILER_DIR}
|
||||||
DOC "The directory where CUDA headers reside")
|
DOC "The directory where CUDA headers reside")
|
||||||
|
|
||||||
FIND_LIBRARY (CUDA_LIBRARY
|
|
||||||
NAMES cuda
|
|
||||||
PATHS
|
|
||||||
$ENV{CUDA_LIB_PATH}
|
|
||||||
${CUDA_COMPILER_SUPER_DIR}/lib
|
|
||||||
${CUDA_COMPILER_DIR}
|
|
||||||
DOC "The CUDA library")
|
|
||||||
|
|
||||||
FIND_LIBRARY (CUDA_RUNTIME_LIBRARY
|
FIND_LIBRARY (CUDA_RUNTIME_LIBRARY
|
||||||
NAMES cudart
|
NAMES cudart
|
||||||
@ -53,15 +45,15 @@ FIND_LIBRARY (CUDA_RUNTIME_LIBRARY
|
|||||||
${CUDA_COMPILER_DIR}
|
${CUDA_COMPILER_DIR}
|
||||||
DOC "The CUDA runtime library")
|
DOC "The CUDA runtime library")
|
||||||
|
|
||||||
IF (CUDA_INCLUDE_PATH AND CUDA_LIBRARY AND CUDA_RUNTIME_LIBRARY)
|
IF (CUDA_INCLUDE_PATH AND CUDA_RUNTIME_LIBRARY)
|
||||||
SET (CUDA_FOUND 1 CACHE STRING "Set to 1 if CUDA is found, 0 otherwise")
|
SET (CUDA_FOUND 1 CACHE STRING "Set to 1 if CUDA is found, 0 otherwise")
|
||||||
ELSE (CUDA_INCLUDE_PATH AND CUDA_LIBRARY AND CUDA_RUNTIME_LIBRARY)
|
ELSE (CUDA_INCLUDE_PATH AND CUDA_RUNTIME_LIBRARY)
|
||||||
SET (CUDA_FOUND 0 CACHE STRING "Set to 1 if CUDA is found, 0 otherwise")
|
SET (CUDA_FOUND 0 CACHE STRING "Set to 1 if CUDA is found, 0 otherwise")
|
||||||
ENDIF (CUDA_INCLUDE_PATH AND CUDA_LIBRARY AND CUDA_RUNTIME_LIBRARY)
|
ENDIF (CUDA_INCLUDE_PATH AND CUDA_RUNTIME_LIBRARY)
|
||||||
|
|
||||||
SET (CUDA_LIBRARIES ${CUDA_LIBRARY} ${CUDA_RUNTIME_LIBRARY})
|
SET (CUDA_LIBRARIES ${CUDA_RUNTIME_LIBRARY})
|
||||||
|
|
||||||
MARK_AS_ADVANCED (CUDA_FOUND CUDA_COMPILER CUDA_LIBRARY CUDA_RUNTIME_LIBRARY)
|
MARK_AS_ADVANCED (CUDA_FOUND CUDA_COMPILER CUDA_RUNTIME_LIBRARY)
|
||||||
|
|
||||||
|
|
||||||
#SET(CUDA_OPTIONS "-ncfe")
|
#SET(CUDA_OPTIONS "-ncfe")
|
||||||
|
Loading…
Reference in New Issue
Block a user