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
composable_kernel_ROCM
Commits
54440cf5
Unverified
Commit
54440cf5
authored
Nov 05, 2024
by
Illia Silin
Committed by
GitHub
Nov 05, 2024
Browse files
remove gfx940;gfx941 from default target lists (#1640)
parent
d0e3a70a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
CMakeLists.txt
CMakeLists.txt
+4
-4
Jenkinsfile
Jenkinsfile
+3
-3
No files found.
CMakeLists.txt
View file @
54440cf5
...
...
@@ -145,20 +145,20 @@ message("hip_version_flat=${hip_VERSION_FLAT}")
message
(
"checking which targets are supported"
)
#In order to build just the CK library (without tests and examples) for all supported GPU targets
#use -D GPU_ARCHS="gfx908;gfx90a;
gfx940;gfx941;
gfx942;gfx1030;gfx1100;gfx1101;gfx1102;gfx1200;gfx1201"
#use -D GPU_ARCHS="gfx908;gfx90a;gfx942;gfx1030;gfx1100;gfx1101;gfx1102;gfx1200;gfx1201"
#the GPU_TARGETS flag will be reset in this case in order to avoid conflicts.
#
#In order to build CK along with all tests and examples it should be OK to set GPU_TARGETS to just 1 or 2 similar architectures.
if
(
NOT ENABLE_ASAN_PACKAGING
)
if
(
NOT WIN32 AND
${
hip_VERSION_FLAT
}
LESS 600300000
)
# WORKAROUND: compiler does not yet fully support gfx12 targets, need to fix version above
set
(
CK_GPU_TARGETS
"gfx908;gfx90a;
gfx940;gfx941;
gfx942;gfx1030;gfx1100;gfx1101;gfx1102"
)
set
(
CK_GPU_TARGETS
"gfx908;gfx90a;gfx942;gfx1030;gfx1100;gfx1101;gfx1102"
)
else
()
set
(
CK_GPU_TARGETS
"gfx908;gfx90a;
gfx940;gfx941;
gfx942;gfx1030;gfx1100;gfx1101;gfx1102;gfx1200;gfx1201"
)
set
(
CK_GPU_TARGETS
"gfx908;gfx90a;gfx942;gfx1030;gfx1100;gfx1101;gfx1102;gfx1200;gfx1201"
)
endif
()
else
()
#build CK only for xnack-supported targets when using ASAN
set
(
CK_GPU_TARGETS
"gfx908:xnack+;gfx90a:xnack+;
gfx940:xnack+;gfx941:xnack+;
gfx942:xnack+"
)
set
(
CK_GPU_TARGETS
"gfx908:xnack+;gfx90a:xnack+;gfx942:xnack+"
)
endif
()
#if user set GPU_ARCHS on the cmake command line, overwrite default target list with user's list
...
...
Jenkinsfile
View file @
54440cf5
...
...
@@ -1101,11 +1101,11 @@ pipeline {
agent
{
label
rocmnode
(
"gfx90a"
)
}
environment
{
setup_args
=
""" -DCMAKE_INSTALL_PREFIX=../install \
-DGPU_TARGETS="gfx908;gfx90a;
gfx940;gfx941;
gfx942" \
-DGPU_TARGETS="gfx908;gfx90a;gfx942" \
-DCMAKE_CXX_FLAGS=" -O3 " """
execute_args
=
""" cd ../client_example && rm -rf build && mkdir build && cd build && \
cmake -DCMAKE_PREFIX_PATH="${env.WORKSPACE}/install;/opt/rocm" \
-DGPU_TARGETS="gfx908;gfx90a;
gfx940;gfx941;
gfx942" \
-DGPU_TARGETS="gfx908;gfx90a;gfx942" \
-DCMAKE_CXX_COMPILER="${build_compiler()}" \
-DCMAKE_CXX_FLAGS=" -O3 " .. && make -j """
}
...
...
@@ -1165,7 +1165,7 @@ pipeline {
execute_args
=
""" cmake -D CMAKE_PREFIX_PATH=/opt/rocm \
-D CMAKE_CXX_COMPILER="${build_compiler()}" \
-D CMAKE_BUILD_TYPE=Release \
-D GPU_ARCHS="gfx908;gfx90a;
gfx940;gfx941;
gfx942;gfx1030;gfx1100;gfx1101;gfx1102" \
-D GPU_ARCHS="gfx908;gfx90a;gfx942;gfx1030;gfx1100;gfx1101;gfx1102" \
-D CMAKE_CXX_FLAGS=" -O3 " .. && make -j64 """
}
steps
{
...
...
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