Skip to content

Commit

Permalink
remove cuda 10 support, add cudnn CI test
Browse files Browse the repository at this point in the history
Signed-off-by: Niklas Eiling <[email protected]>
  • Loading branch information
n-eiling committed Jul 18, 2023
1 parent 07db2ba commit 088b6fc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 88 deletions.
55 changes: 14 additions & 41 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,6 @@ prepare:centos8:cuda11:
tags:
- docker

prepare:centos8:cuda10:
stage: prepare
script:
- docker build
--file utils/Dockerfile.cuda10
--tag ${DOCKER_IMAGE_DEV}_cuda10:${DOCKER_TAG}
--tag ${DOCKER_IMAGE_DEV}_cuda10:latest .
tags:
- docker

# check if styleguide is fulfilled
#style_check:
# stage: build
Expand Down Expand Up @@ -78,6 +68,7 @@ build:
paths:
- bin
- tests/bin
- tests/samples/samples-bin
image: ${DOCKER_IMAGE_DEV}:${DOCKER_TAG}
cache:
paths:
Expand Down Expand Up @@ -144,32 +135,6 @@ build:cuda11:
tags:
- docker

build:cuda10:
stage: build
needs: ["prepare:centos8:cuda10"]
script:
- make -j 32 libtirpc
- make -j 32 cuda-gdb
- make -j 1 LOG=INFO NOSAMPLES=yes
artifacts:
expire_in: 1 week
paths:
- bin
- tests/bin
image: ${DOCKER_IMAGE_DEV}_cuda10:${DOCKER_TAG}
cache:
paths:
- gpu/build
- cpu/*.o
- tests/cpu/*.o
- tests/test_apps/*.o
- submodules/libtirpc
- submodules/cuda-gdb
- submodules/cuda-gdb-src.rpm
key: build_cuda10
tags:
- docker

build:debug:
stage: build
needs: ["prepare:rocky9:docker-dev"]
Expand Down Expand Up @@ -206,6 +171,7 @@ build:debug:
LDIR: '$CI_BUILDS_DIR/$CI_PROJECT_PATH/bin'
SAMPLES_PATH: '/usr/local/cuda/samples'
PARAMETER: ''
CHDIR: 'tests'
script:
- mkdir ~/.ssh &&
echo "-----BEGIN OPENSSH PRIVATE KEY-----" > ~/.ssh/id_rsa &&
Expand All @@ -217,7 +183,8 @@ build:debug:
- scp -r $LDIR/* $GPU_TARGET:$RDIR/
- ssh $GPU_TARGET "LD_PRELOAD=$RDIR/libtirpc.so.3 $RDIR/cricket-rpc-server 255" &
- sleep 2
- CRICKET_RPCID=255 REMOTE_GPU_ADDRESS="ghost.acs-lab.eonerc.rwth-aachen.de" PATH=$LDIR:$PATH LD_PRELOAD=$LDIR/libtirpc.so.3:$LDIR/cricket-client.so $LDIR/$TEST_BINARY $PARAMETER
- cd $LDIR/$CHDIR
- CRICKET_RPCID=255 REMOTE_GPU_ADDRESS="ghost.acs-lab.eonerc.rwth-aachen.de" PATH=$LDIR:$PATH LD_PRELOAD=$LDIR/libtirpc.so.3:$LDIR/cricket-client.so ./$TEST_BINARY $PARAMETER
after_script:
- ssh $GPU_TARGET rm -rf $RDIR
- ssh $GPU_TARGET pkill -fe -2 $RDIR/test_kernel
Expand Down Expand Up @@ -252,21 +219,27 @@ test:test_programs(2/2):
test:test_kernel:
extends: .remote-gpu
variables:
TEST_BINARY: 'tests/kernel.testapp'
TEST_BINARY: 'kernel.testapp'

test:samples:matrixMul:
extends: .remote-gpu
variables:
TEST_BINARY: 'tests/matrixMul.compressed.sample'
TEST_BINARY: 'matrixMul.compressed.sample'

test:samples:bandwidthTest:
extends: .remote-gpu
variables:
TEST_BINARY: 'tests/bandwidthTest.sample'
TEST_BINARY: 'bandwidthTest.sample'

test:samples:nbody:
extends: .remote-gpu
variables:
TEST_BINARY: 'tests/nbody.uncompressed.sample'
TEST_BINARY: 'nbody.uncompressed.sample'
PARAMETER: '-benchmark'

test:samples:mnistCUDNN:
extends: .remote-gpu
variables:
CHDIR: '../tests/samples/samples-bin'
TEST_BINARY: 'mnistCUDNN.sample'

8 changes: 6 additions & 2 deletions tests/samples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ SAMPLES = samples-bin/matrixMul.compressed.sample \
samples-bin/matrixMul.uncompressed.sample \
samples-bin/nbody.uncompressed.sample \
samples-bin/nbody.compressed.sample \
samples-bin/bandwidthTest.sample
samples-bin/bandwidthTest.sample \
samples-bin/mnistCUDNN.sample

CUDA_PATH = /usr/local/cuda
SMS = 75 60
Expand All @@ -30,7 +31,10 @@ cudnn-samples:
samples-bin:
mkdir -p $@

samples-bin/mnistCUDNN.sample : cudnn-samples samples-bin
samples-bin/data:
cp -R cudnn-samples/mnistCUDNN/data $@

samples-bin/mnistCUDNN.sample : cudnn-samples samples-bin samples-bin/data
make -C cudnn-samples/mnistCUDNN \
clean
make -C cudnn-samples/mnistCUDNN \
Expand Down
45 changes: 0 additions & 45 deletions utils/Dockerfile.cuda10

This file was deleted.

0 comments on commit 088b6fc

Please sign in to comment.