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
31c26d49
Commit
31c26d49
authored
4 years ago
by
Wieland Morgenstern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't trigger FATAL_ERROR on CUDA_LOCAL_ARCH_ONLY on empty but existing QUERY_CUDA_ERR
parent
0e3ba164
Changes
1
Hide 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 @
31c26d49
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
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