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
2d7123f5
Commit
2d7123f5
authored
Jul 09, 2019
by
Aaron Enye Shi
Browse files
Enable MIOpen Backend for HIP-Clang Compiler
Use check_cxx_compiler_flags to check for hipcc as compiler.
parent
a96d3a95
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
CMakeLists.txt
CMakeLists.txt
+3
-1
No files found.
CMakeLists.txt
View file @
2d7123f5
...
@@ -32,7 +32,9 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
...
@@ -32,7 +32,9 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
endif
()
endif
()
endif
()
endif
()
if
(
CMAKE_CXX_COMPILER MATCHES
".*hcc"
)
include
(
CheckCXXCompilerFlag
)
check_cxx_compiler_flag
(
"--cuda-host-only -x hip"
HAS_HIP
)
if
(
HAS_HIP
)
message
(
STATUS
"Enable miopen backend"
)
message
(
STATUS
"Enable miopen backend"
)
set
(
MIGRAPHX_ENABLE_GPU On CACHE BOOL
""
)
set
(
MIGRAPHX_ENABLE_GPU On CACHE BOOL
""
)
else
()
else
()
...
...
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