Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
stitchEm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Franco (nextime) Lanza
stitchEm
Commits
a6b4e54f
Unverified
Commit
a6b4e54f
authored
May 14, 2020
by
Wieland Morgenstern
Committed by
GitHub
May 14, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #92 from stitchEm/w-m/cuda-local-arch-err
CUDA_LOCAL_ARCH_ONLY CMake fix
parents
0e3ba164
31c26d49
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
CUDAArch.cmake
cmake/CUDAArch.cmake
+2
-2
No files found.
cmake/CUDAArch.cmake
View file @
a6b4e54f
...
...
@@ -21,9 +21,9 @@ if(CUDA_LOCAL_ARCH_ONLY)
OUTPUT_VARIABLE QUERY_CUDA_OUT
ERROR_VARIABLE QUERY_CUDA_ERR
)
if
((
QUERY_CUDA_EXIT EQUAL 1
)
OR
QUERY_CUDA_ERR
)
if
((
QUERY_CUDA_EXIT EQUAL 1
)
OR
${
QUERY_CUDA_ERR
}
)
message
(
FATAL_ERROR
"Query for CUDA_LOCAL_ARCH_ONLY failed with message:
${
QUERY_CUDA_OUT
}
\n
${
QUERY_CUDA_ERR
}
"
)
endif
(
(
QUERY_CUDA_EXIT EQUAL 1
)
OR QUERY_CUDA_ERR
)
endif
()
# try out these settings with nvcc
execute_process
(
COMMAND
${
NVCC
}
--run cmake/configuration/helloWorld.cu
${
CUDA_LOCAL_ARCH_FLAGS
}
--output-file
${
CMAKE_CURRENT_BINARY_DIR
}
/testCUDACompilationFlags
...
...
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