Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hpvm-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
hpvm-release
Commits
f7eed34c
Commit
f7eed34c
authored
4 years ago
by
Yifan Zhao
Browse files
Options
Downloads
Patches
Plain Diff
Added compiler version check
parent
61fba481
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hpvm/projects/hpvm-tensor-rt/CMakeLists.txt
+12
-0
12 additions, 0 deletions
hpvm/projects/hpvm-tensor-rt/CMakeLists.txt
with
12 additions
and
0 deletions
hpvm/projects/hpvm-tensor-rt/CMakeLists.txt
+
12
−
0
View file @
f7eed34c
...
...
@@ -4,6 +4,18 @@ find_package(CUDA 6.5 REQUIRED)
set
(
CUDA_SEPARABLE_COMPILATION ON CACHE BOOL
""
)
set
(
CUDA_PROPAGATE_HOST_FLAGS OFF
)
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"GNU"
)
# gcc > 8 are not supported
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8
)
message
(
FATAL_ERROR
"GCC versions later than 8 are not supported"
)
endif
()
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"Clang"
)
# clang < 3.2 || clang >= 9 unsupported
set
(
clang_v
${
CMAKE_CXX_COMPILER_VERSION
}
)
if
(
clang_v VERSION_GREATER_EQUAL 9 OR clang_v VERSION_LESS_EQUAL 3.2
)
message
(
FATAL_ERROR
"Clang<3.2 or clang>=9 are not supported"
)
endif
()
endif
()
# Addresses a bug where code is not compiled as C++11 in non-CUDA code and older g++ versions
# Edit: using c++14 now
set
(
CMAKE_CXX_STANDARD 14
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment