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
d88d8735
Unverified
Commit
d88d8735
authored
Sep 28, 2023
by
Paul Fultz II
Committed by
GitHub
Sep 28, 2023
Browse files
Add an error message when gpu_targets is not set (#2234)
parent
5b53552d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
.github/workflows/ci.yaml
.github/workflows/ci.yaml
+3
-0
src/targets/gpu/CMakeLists.txt
src/targets/gpu/CMakeLists.txt
+4
-0
No files found.
.github/workflows/ci.yaml
View file @
d88d8735
...
@@ -142,6 +142,7 @@ jobs:
...
@@ -142,6 +142,7 @@ jobs:
-DROCM_ENABLE_GH_ANNOTATIONS=On \
-DROCM_ENABLE_GH_ANNOTATIONS=On \
-DCLANG_TIDY_DEPEND_ON_TARGET=Off \
-DCLANG_TIDY_DEPEND_ON_TARGET=Off \
-DCLANG_TIDY_CACHE=/data/tidy-cache \
-DCLANG_TIDY_CACHE=/data/tidy-cache \
-DGPU_TARGETS=gfx908 \
..
..
make -j$(nproc) -k onnx-proto tf-proto tidy
make -j$(nproc) -k onnx-proto tf-proto tidy
...
@@ -191,6 +192,7 @@ jobs:
...
@@ -191,6 +192,7 @@ jobs:
-DCPPCHECK_BUILD_DIR=/data/cppcheck-cache \
-DCPPCHECK_BUILD_DIR=/data/cppcheck-cache \
-DBUILD_DEV=On \
-DBUILD_DEV=On \
-DROCM_ENABLE_GH_ANNOTATIONS=On \
-DROCM_ENABLE_GH_ANNOTATIONS=On \
-DGPU_TARGETS=gfx908 \
..
..
make -j$(nproc) cppcheck
make -j$(nproc) cppcheck
...
@@ -280,6 +282,7 @@ jobs:
...
@@ -280,6 +282,7 @@ jobs:
-DBUILD_DEV=On \
-DBUILD_DEV=On \
-DCMAKE_CXX_COMPILER_LAUNCHER=/usr/local/bin/ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=/usr/local/bin/ccache \
-DCMAKE_C_COMPILER_LAUNCHER=/usr/local/bin/ccache \
-DCMAKE_C_COMPILER_LAUNCHER=/usr/local/bin/ccache \
-DGPU_TARGETS=gfx908 \
..
..
make -j$(nproc) tests driver
make -j$(nproc) tests driver
...
...
src/targets/gpu/CMakeLists.txt
View file @
d88d8735
...
@@ -23,6 +23,10 @@
...
@@ -23,6 +23,10 @@
# ####################################################################################
# ####################################################################################
list
(
APPEND CMAKE_PREFIX_PATH /opt/rocm
)
list
(
APPEND CMAKE_PREFIX_PATH /opt/rocm
)
find_package
(
hip
)
if
(
NOT GPU_TARGETS
)
message
(
FATAL_ERROR
"HIP package is broken and has no GPU_TARGETS, please pass -DGPU_TARGETS=$(/opt/rocm/bin/rocminfo | grep -o -m1 'gfx.*') to cmake to build for your gpu."
)
endif
()
find_package
(
miopen
)
find_package
(
miopen
)
# rocblas
# rocblas
...
...
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