Skip to content

Commit 1f135e5

Browse files
authored
Merge pull request #386 from bragadeesh/master
Jenkins changes to master
2 parents d0fca34 + 9d5bad9 commit 1f135e5

File tree

2 files changed

+126
-44
lines changed

2 files changed

+126
-44
lines changed

Jenkinsfile

Lines changed: 76 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -487,58 +487,90 @@ def build_pipeline( compiler_data compiler_args, docker_data docker_args, projec
487487
}
488488

489489
// The following launches 3 builds in parallel: hcc-ctu, hcc-1.6 and cuda
490-
parallel hcc_ctu:
490+
//parallel hcc_ctu:
491+
//{
492+
// try
493+
// {
494+
// node( 'docker && rocm && gfx900')
495+
// {
496+
// def docker_args = new docker_data(
497+
// from_image:'compute-artifactory:5001/rocm-developer-tools/hip/master/hip-hcc-ctu-ubuntu-16.04:latest',
498+
// build_docker_file:'dockerfile-build-ubuntu',
499+
// install_docker_file:'dockerfile-install-ubuntu',
500+
// docker_run_args:'--device=/dev/kfd --device=/dev/dri --group-add=video',
501+
// docker_build_args:' --pull' )
502+
//
503+
// def compiler_args = new compiler_data(
504+
// compiler_name:'hcc-ctu',
505+
// build_config:'Release',
506+
// compiler_path:'/opt/rocm/bin/hcc' )
507+
//
508+
// def rocblas_paths = new project_paths(
509+
// project_name:'rocblas-hcc-ctu',
510+
// src_prefix:'src',
511+
// build_prefix:'src',
512+
// build_command: './install.sh -c' )
513+
//
514+
// def print_version_closure = {
515+
// sh """
516+
// set -x
517+
// /opt/rocm/bin/hcc --version
518+
// """
519+
// }
520+
//
521+
// build_pipeline( compiler_args, docker_args, rocblas_paths, print_version_closure )
522+
// }
523+
// }
524+
// catch( err )
525+
// {
526+
// currentBuild.result = 'UNSTABLE'
527+
// }
528+
//},
529+
//parallel rocm_ubuntu:
530+
//{
531+
// node( 'docker && rocm && gfx900')
532+
// {
533+
// def hcc_docker_args = new docker_data(
534+
// from_image:'rocm/dev-ubuntu-16.04:1.7.1',
535+
// build_docker_file:'dockerfile-build-ubuntu',
536+
// install_docker_file:'dockerfile-install-ubuntu',
537+
// docker_run_args:'--device=/dev/kfd --device=/dev/dri --group-add=video',
538+
// docker_build_args:' --pull' )
539+
//
540+
// def hcc_compiler_args = new compiler_data(
541+
// compiler_name:'hcc-rocm-ubuntu',
542+
// build_config:'Release',
543+
// compiler_path:'/opt/rocm/bin/hcc' )
544+
//
545+
// def rocblas_paths = new project_paths(
546+
// project_name:'rocblas-ubuntu',
547+
// src_prefix:'src',
548+
// build_prefix:'src',
549+
// build_command: './install.sh -c' )
550+
//
551+
// def print_version_closure = {
552+
// sh """
553+
// set -x
554+
// /opt/rocm/bin/hcc --version
555+
// """
556+
// }
557+
//
558+
// build_pipeline( hcc_compiler_args, hcc_docker_args, rocblas_paths, print_version_closure )
559+
// }
560+
//},
561+
parallel rocm19_ubuntu:
491562
{
492-
try
493-
{
494-
node( 'docker && rocm && gfx900')
495-
{
496-
def docker_args = new docker_data(
497-
from_image:'compute-artifactory:5001/rocm-developer-tools/hip/master/hip-hcc-ctu-ubuntu-16.04:latest',
498-
build_docker_file:'dockerfile-build-ubuntu',
499-
install_docker_file:'dockerfile-install-ubuntu',
500-
docker_run_args:'--device=/dev/kfd --device=/dev/dri --group-add=video',
501-
docker_build_args:' --pull' )
502-
503-
def compiler_args = new compiler_data(
504-
compiler_name:'hcc-ctu',
505-
build_config:'Release',
506-
compiler_path:'/opt/rocm/bin/hcc' )
507-
508-
def rocblas_paths = new project_paths(
509-
project_name:'rocblas-hcc-ctu',
510-
src_prefix:'src',
511-
build_prefix:'src',
512-
build_command: './install.sh -c' )
513-
514-
def print_version_closure = {
515-
sh """
516-
set -x
517-
/opt/rocm/bin/hcc --version
518-
"""
519-
}
520-
521-
build_pipeline( compiler_args, docker_args, rocblas_paths, print_version_closure )
522-
}
523-
}
524-
catch( err )
525-
{
526-
currentBuild.result = 'UNSTABLE'
527-
}
528-
},
529-
rocm_ubuntu:
530-
{
531-
node( 'docker && rocm && gfx900')
563+
node( 'docker && rocm19 && gfx900')
532564
{
533565
def hcc_docker_args = new docker_data(
534-
from_image:'rocm/dev-ubuntu-16.04:1.7.1',
535-
build_docker_file:'dockerfile-build-ubuntu',
566+
from_image:'rocm/dev-ubuntu-16.04:1.9.0',
567+
build_docker_file:'dockerfile-build-ubuntu-rock',
536568
install_docker_file:'dockerfile-install-ubuntu',
537569
docker_run_args:'--device=/dev/kfd --device=/dev/dri --group-add=video',
538570
docker_build_args:' --pull' )
539571

540572
def hcc_compiler_args = new compiler_data(
541-
compiler_name:'hcc-rocm-ubuntu',
573+
compiler_name:'hcc-rocm19-ubuntu',
542574
build_config:'Release',
543575
compiler_path:'/opt/rocm/bin/hcc' )
544576

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Parameters related to building hip
2+
ARG base_image
3+
4+
FROM ${base_image}
5+
LABEL maintainer="kent.knox@amd"
6+
7+
ARG user_uid
8+
9+
# Install dependent packages
10+
# Dependencies:
11+
# * hcc-config.cmake: pkg-config
12+
# * tensile: python2.7, python-yaml
13+
# * rocblas-test: gfortran, googletest
14+
# * rocblas-bench: libboost-program-options-dev
15+
# * libhsakmt.so: libnuma1
16+
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
17+
rock-dkms \
18+
sudo \
19+
ca-certificates \
20+
git \
21+
make \
22+
cmake \
23+
clang-format-3.8 \
24+
pkg-config \
25+
python2.7 \
26+
python-yaml \
27+
gfortran \
28+
libboost-program-options-dev \
29+
libnuma1 \
30+
&& \
31+
apt-get clean && \
32+
rm -rf /var/lib/apt/lists/*
33+
34+
# docker pipeline runs containers with particular uid
35+
# create a jenkins user with this specific uid so it can use sudo priviledges
36+
# Grant any member of sudo group password-less sudo privileges
37+
RUN useradd --create-home -u ${user_uid} -o -G sudo --shell /bin/bash jenkins && \
38+
mkdir -p /etc/sudoers.d/ && \
39+
echo '%sudo ALL=(ALL) NOPASSWD:ALL' | tee /etc/sudoers.d/sudo-nopasswd
40+
41+
ARG ROCBLAS_SRC_ROOT=/usr/local/src/rocBLAS
42+
43+
# Clone rocblas repo
44+
# Build client dependencies and install into /usr/local (LAPACK & GTEST)
45+
RUN mkdir -p ${ROCBLAS_SRC_ROOT} && cd ${ROCBLAS_SRC_ROOT} && \
46+
git clone -b develop --depth=1 https://github.com/ROCmSoftwarePlatform/rocBLAS . && \
47+
mkdir -p build/deps && cd build/deps && \
48+
cmake -DBUILD_BOOST=OFF ${ROCBLAS_SRC_ROOT}/deps && \
49+
make -j $(nproc) install && \
50+
rm -rf ${ROCBLAS_SRC_ROOT}

0 commit comments

Comments
 (0)