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
bbd26e10
Commit
bbd26e10
authored
Mar 20, 2024
by
Adam Osewski
Browse files
Merge remote-tracking branch 'origin/develop' into aosewski/ggemm_multi_d2
parents
7b729fdd
f5210953
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
Dockerfile
Dockerfile
+12
-6
Jenkinsfile
Jenkinsfile
+3
-6
No files found.
Dockerfile
View file @
bbd26e10
...
@@ -3,6 +3,7 @@ ARG DEBIAN_FRONTEND=noninteractive
...
@@ -3,6 +3,7 @@ ARG DEBIAN_FRONTEND=noninteractive
ARG
ROCMVERSION=6.0
ARG
ROCMVERSION=6.0
ARG
compiler_version=""
ARG
compiler_version=""
ARG
compiler_commit=""
ARG
compiler_commit=""
ARG
CK_SCCACHE=""
RUN
set
-xe
RUN
set
-xe
...
@@ -32,16 +33,18 @@ RUN if [ "$ROCMVERSION" != "6.1" ]; then \
...
@@ -32,16 +33,18 @@ RUN if [ "$ROCMVERSION" != "6.1" ]; then \
RUN
sh
-c
"echo deb http://mirrors.kernel.org/ubuntu focal main universe | tee -a /etc/apt/sources.list"
RUN
sh
-c
"echo deb http://mirrors.kernel.org/ubuntu focal main universe | tee -a /etc/apt/sources.list"
RUN
amdgpu-install
-y
--usecase
=
rocm
--no-dkms
RUN
amdgpu-install
-y
--usecase
=
rocm
--no-dkms
## Sccache binary built from source for ROCm
## Sccache binary built from source for ROCm
, only install if CK_SCCACHE is defined
ARG
SCCACHE_REPO_URL=http://compute-artifactory.amd.com/artifactory/rocm-generic-experimental/rocm-sccache
ARG
SCCACHE_REPO_URL=http://compute-artifactory.amd.com/artifactory/rocm-generic-experimental/rocm-sccache
ENV
SCCACHE_INSTALL_LOCATION=/usr/local/.cargo/bin
ENV
SCCACHE_INSTALL_LOCATION=/usr/local/.cargo/bin
RUN
mkdir
-p
${
SCCACHE_INSTALL_LOCATION
}
&&
\
curl
${
SCCACHE_REPO_URL
}
/portable/0.2.16/sccache-0.2.16-alpha.1-rocm
--output
${
SCCACHE_INSTALL_LOCATION
}
/sccache
&&
\
chmod
+x
${
SCCACHE_INSTALL_LOCATION
}
/sccache
ENV
PATH=$PATH:${SCCACHE_INSTALL_LOCATION}
ENV
PATH=$PATH:${SCCACHE_INSTALL_LOCATION}
ENV
CK_SCCACHE=$CK_SCCACHE
RUN if
[
"
$CK_SCCACHE
"
!=
""
]
;
then
\
mkdir
-p
${
SCCACHE_INSTALL_LOCATION
}
&&
\
curl
${
SCCACHE_REPO_URL
}
/portable/0.2.16/sccache-0.2.16-alpha.1-rocm
--output
${
SCCACHE_INSTALL_LOCATION
}
/sccache
&&
\
chmod
+x
${
SCCACHE_INSTALL_LOCATION
}
/sccache
;
\
fi
# Install dependencies
# Install dependencies
# hipTensor requires rocm-llvm-dev for rocm versions > 6.0.1
RUN
apt-get update
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
--allow-unauthenticated
\
RUN
apt-get update
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-y
--allow-unauthenticated
\
build-essential
\
build-essential
\
cmake
\
cmake
\
...
@@ -61,7 +64,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-
...
@@ -61,7 +64,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-
python3-dev
\
python3-dev
\
python3-pip
\
python3-pip
\
redis
\
redis
\
rocm-llvm-dev
\
sshpass
\
sshpass
\
stunnel
\
stunnel
\
software-properties-common
\
software-properties-common
\
...
@@ -75,6 +77,10 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-
...
@@ -75,6 +77,10 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-
apt-get clean
&&
\
apt-get clean
&&
\
rm
-rf
/var/lib/apt/lists/
*
rm
-rf
/var/lib/apt/lists/
*
# hipTensor requires rocm-llvm-dev for rocm versions > 6.0.1
RUN if
[
"
$ROCMVERSION
"
=
"6.1"
]
;
then
\
sh
-c
"apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-unauthenticated rocm-llvm-dev"
;
\
fi
# Update the cmake to version 3.27.5
# Update the cmake to version 3.27.5
RUN
pip
install
--upgrade
cmake
==
3.27.5
RUN
pip
install
--upgrade
cmake
==
3.27.5
...
...
Jenkinsfile
View file @
bbd26e10
...
@@ -104,7 +104,7 @@ def getDockerImage(Map conf=[:]){
...
@@ -104,7 +104,7 @@ def getDockerImage(Map conf=[:]){
env
.
DOCKER_BUILDKIT
=
1
env
.
DOCKER_BUILDKIT
=
1
def
prefixpath
=
conf
.
get
(
"prefixpath"
,
"/opt/rocm"
)
def
prefixpath
=
conf
.
get
(
"prefixpath"
,
"/opt/rocm"
)
def
no_cache
=
conf
.
get
(
"no_cache"
,
false
)
def
no_cache
=
conf
.
get
(
"no_cache"
,
false
)
def
dockerArgs
=
"--build-arg BUILDKIT_INLINE_CACHE=1 --build-arg PREFIX=${prefixpath} --build-arg compiler_version='${params.COMPILER_VERSION}' --build-arg compiler_commit='${params.COMPILER_COMMIT}' --build-arg ROCMVERSION='${params.ROCMVERSION}' "
def
dockerArgs
=
"--build-arg BUILDKIT_INLINE_CACHE=1 --build-arg PREFIX=${prefixpath} --build-arg
CK_SCCACHE='${env.CK_SCCACHE}' --build-arg
compiler_version='${params.COMPILER_VERSION}' --build-arg compiler_commit='${params.COMPILER_COMMIT}' --build-arg ROCMVERSION='${params.ROCMVERSION}' "
if
(
no_cache
)
if
(
no_cache
)
{
{
dockerArgs
=
dockerArgs
+
" --no-cache "
dockerArgs
=
dockerArgs
+
" --no-cache "
...
@@ -134,7 +134,7 @@ def buildDocker(install_prefix){
...
@@ -134,7 +134,7 @@ def buildDocker(install_prefix){
checkout
scm
checkout
scm
def
image_name
=
getDockerImageName
()
def
image_name
=
getDockerImageName
()
echo
"Building Docker for ${image_name}"
echo
"Building Docker for ${image_name}"
def
dockerArgs
=
"--build-arg BUILDKIT_INLINE_CACHE=1 --build-arg PREFIX=${install_prefix} --build-arg compiler_version='${params.COMPILER_VERSION}' --build-arg compiler_commit='${params.COMPILER_COMMIT}' --build-arg ROCMVERSION='${params.ROCMVERSION}' "
def
dockerArgs
=
"--build-arg BUILDKIT_INLINE_CACHE=1 --build-arg PREFIX=${install_prefix} --build-arg
CK_SCCACHE='${env.CK_SCCACHE}' --build-arg
compiler_version='${params.COMPILER_VERSION}' --build-arg compiler_commit='${params.COMPILER_COMMIT}' --build-arg ROCMVERSION='${params.ROCMVERSION}' "
echo
"Build Args: ${dockerArgs}"
echo
"Build Args: ${dockerArgs}"
try
{
try
{
...
@@ -311,7 +311,7 @@ def buildHipClangJob(Map conf=[:]){
...
@@ -311,7 +311,7 @@ def buildHipClangJob(Map conf=[:]){
if
(
conf
.
get
(
"enforce_xnack_on"
,
false
))
{
if
(
conf
.
get
(
"enforce_xnack_on"
,
false
))
{
dockerOpts
=
dockerOpts
+
" --env HSA_XNACK=1 "
dockerOpts
=
dockerOpts
+
" --env HSA_XNACK=1 "
}
}
def
dockerArgs
=
"--build-arg PREFIX=${prefixpath} --build-arg compiler_version='${params.COMPILER_VERSION}' --build-arg compiler_commit='${params.COMPILER_COMMIT}' --build-arg ROCMVERSION='${params.ROCMVERSION}' "
def
dockerArgs
=
"--build-arg PREFIX=${prefixpath} --build-arg
CK_SCCACHE='${env.CK_SCCACHE}' --build-arg
compiler_version='${params.COMPILER_VERSION}' --build-arg compiler_commit='${params.COMPILER_COMMIT}' --build-arg ROCMVERSION='${params.ROCMVERSION}' "
if
(
params
.
COMPILER_VERSION
==
"amd-staging"
||
params
.
COMPILER_VERSION
==
"amd-mainline-open"
||
params
.
COMPILER_COMMIT
!=
""
){
if
(
params
.
COMPILER_VERSION
==
"amd-staging"
||
params
.
COMPILER_VERSION
==
"amd-mainline-open"
||
params
.
COMPILER_COMMIT
!=
""
){
dockerOpts
=
dockerOpts
+
" --env HIP_CLANG_PATH='/llvm-project/build/bin' "
dockerOpts
=
dockerOpts
+
" --env HIP_CLANG_PATH='/llvm-project/build/bin' "
}
}
...
@@ -367,9 +367,6 @@ def runCKProfiler(Map conf=[:]){
...
@@ -367,9 +367,6 @@ def runCKProfiler(Map conf=[:]){
dockerOpts
=
dockerOpts
+
" --env HSA_XNACK=1 "
dockerOpts
=
dockerOpts
+
" --env HSA_XNACK=1 "
}
}
def
dockerArgs
=
"--build-arg PREFIX=${prefixpath} --build-arg compiler_version='${params.COMPILER_VERSION}' --build-arg compiler_commit='${params.COMPILER_COMMIT}' --build-arg ROCMVERSION='${params.ROCMVERSION}' "
def
dockerArgs
=
"--build-arg PREFIX=${prefixpath} --build-arg compiler_version='${params.COMPILER_VERSION}' --build-arg compiler_commit='${params.COMPILER_COMMIT}' --build-arg ROCMVERSION='${params.ROCMVERSION}' "
if
(
params
.
COMPILER_VERSION
==
"amd-staging"
||
params
.
COMPILER_VERSION
==
"amd-mainline-open"
||
params
.
COMPILER_COMMIT
!=
""
){
dockerOpts
=
dockerOpts
+
" --env HIP_CLANG_PATH='/llvm-project/build/bin' "
}
def
variant
=
env
.
STAGE_NAME
def
variant
=
env
.
STAGE_NAME
def
retimage
def
retimage
...
...
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