Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
7f553e51
Commit
7f553e51
authored
Jun 01, 2020
by
Paul
Browse files
Disable cuda compat warning
parent
c6560f37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/targets/gpu/CMakeLists.txt
src/targets/gpu/CMakeLists.txt
+2
-0
No files found.
src/targets/gpu/CMakeLists.txt
View file @
7f553e51
...
@@ -80,6 +80,8 @@ if(CMAKE_CXX_COMPILER MATCHES ".*hcc")
...
@@ -80,6 +80,8 @@ if(CMAKE_CXX_COMPILER MATCHES ".*hcc")
target_compile_options
(
migraphx_device PRIVATE -amdgpu-target=
${
AMDGPU_TARGET
}
)
target_compile_options
(
migraphx_device PRIVATE -amdgpu-target=
${
AMDGPU_TARGET
}
)
target_link_libraries
(
migraphx_device -amdgpu-target=
${
AMDGPU_TARGET
}
)
target_link_libraries
(
migraphx_device -amdgpu-target=
${
AMDGPU_TARGET
}
)
endforeach
()
endforeach
()
else
()
target_compile_options
(
migraphx_device PRIVATE -Wno-cuda-compat
)
endif
()
endif
()
check_cxx_compiler_flag
(
"--cuda-host-only -fhip-lambda-host-device -x hip"
HAS_HIP_LAMBDA_HOST_DEVICE
)
check_cxx_compiler_flag
(
"--cuda-host-only -fhip-lambda-host-device -x hip"
HAS_HIP_LAMBDA_HOST_DEVICE
)
if
(
HAS_HIP_LAMBDA_HOST_DEVICE
)
if
(
HAS_HIP_LAMBDA_HOST_DEVICE
)
...
...
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