Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
8fcb7409
Unverified
Commit
8fcb7409
authored
Apr 27, 2021
by
Paul Fultz II
Committed by
GitHub
Apr 27, 2021
Browse files
Use C++17 to build everything when using clang (#812)
parent
e8ae23b1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
CMakeLists.txt
CMakeLists.txt
+5
-1
src/targets/gpu/CMakeLists.txt
src/targets/gpu/CMakeLists.txt
+0
-1
No files found.
CMakeLists.txt
View file @
8fcb7409
...
@@ -60,7 +60,11 @@ endif()
...
@@ -60,7 +60,11 @@ endif()
set
(
MIGRAPHX_ENABLE_CPU Off CACHE BOOL
""
)
set
(
MIGRAPHX_ENABLE_CPU Off CACHE BOOL
""
)
set
(
CMAKE_CXX_STANDARD_DEFAULT
""
)
set
(
CMAKE_CXX_STANDARD_DEFAULT
""
)
add_compile_options
(
-std=c++14
)
if
(
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
add_compile_options
(
-std=c++17
)
else
()
add_compile_options
(
-std=c++14
)
endif
()
list
(
APPEND CMAKE_MODULE_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake
)
list
(
APPEND CMAKE_MODULE_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake
)
include
(
EnableCompilerWarnings
)
include
(
EnableCompilerWarnings
)
...
...
src/targets/gpu/CMakeLists.txt
View file @
8fcb7409
...
@@ -286,7 +286,6 @@ endif()
...
@@ -286,7 +286,6 @@ endif()
# Workaround broken rocblas headers
# Workaround broken rocblas headers
target_compile_definitions
(
migraphx_gpu PUBLIC -D__HIP_PLATFORM_HCC__=1
)
target_compile_definitions
(
migraphx_gpu PUBLIC -D__HIP_PLATFORM_HCC__=1
)
target_compile_options
(
migraphx_gpu PRIVATE -std=c++17
)
target_link_libraries
(
migraphx_gpu PUBLIC migraphx MIOpen roc::rocblas
)
target_link_libraries
(
migraphx_gpu PUBLIC migraphx MIOpen roc::rocblas
)
target_link_libraries
(
migraphx_gpu PRIVATE migraphx_device migraphx_kernels
)
target_link_libraries
(
migraphx_gpu PRIVATE migraphx_device migraphx_kernels
)
...
...
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