diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1a72409a61c0e38f7d8d298bf008d31820a1d04c..5c36c48645f9224db4a9b1ee850c6b7a4011d22d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -61,7 +61,8 @@ simpletrack: strategy: depend only: variables: - - $CI_COMMIT_BRANCH == "qa" + - $CI_COMMIT_BRANCH =~ /^qa.*$/ + - $CI_COMMIT_TAG =~ /^v.*$/ changes: - lhc/simpletrack/Dockerfile.* - lhc/simpletrack/lhc-simpletrack.* diff --git a/lhc/simpletrack/CHANGELOG.md b/lhc/simpletrack/CHANGELOG.md index 15f96362a5357aefcda4bb4f4b1b03080bd159db..5f76ff05ea93bd87961f767ef916c3169cd42b47 100644 --- a/lhc/simpletrack/CHANGELOG.md +++ b/lhc/simpletrack/CHANGELOG.md @@ -1,32 +1,26 @@ -# 0.3.0 (June 28th 2020) +# QA + +FIXES: +* For unpriviledged Singularity runs switched to /tmp/jobs as output folder. + +# Master UPDATES: * intel: NEO version updated to 20.25.17111 and oneAPI DPC++ to 2020.10.6.0.4 (June releases). * ROCm container added +CHANGES: +* Tagged build based on the spec definition. +* Using trigger-based build to rebuild only on simpletrack changes. +* CI/CD basic functionality test added for the CPU-based container builds i.e. intel and pocl + FEATURES: * Switched to argument for benchmark setup instead of environment variables. - -# 0.2.1 (June 25th 2020) +* Added "benchmark" mode to run and generate json output for the runs. +* Generate yaml alongside the json summary. +* Standalone execution of the simpletrack benchmark without an orchestrator. FIXES: * ocl-icd-dev package explicitely installed now to avoid build failures. - -# 0.2.0 (June 16th 2020) - -FIXES: * Using simpletrack device lists instead of clinfo. -FEATURES: -* Added "benchmark" mode to run and generate json output for the runs. -* Generate yaml alongside the json summary. - -# 0.1.0 (June 13th 2020) - -FEATURES: -* Standalone execution of the simpletrack benchmark without an orchestrator. - -CHANGES: -* Tagged build based on the spec definition. -* Using trigger-based build to rebuild only on simpletrack changes. -* CI/CD basic functionality test added for the CPU-based container builds i.e. intel and pocl diff --git a/lhc/simpletrack/README.md b/lhc/simpletrack/README.md index a05d7ab2e674f58c6685e12eb4d695af0c742934..bfbb3e9c59b442d2268ace6dd723f7ddcef9d9c0 100644 --- a/lhc/simpletrack/README.md +++ b/lhc/simpletrack/README.md @@ -10,7 +10,7 @@ Docker images containing OpenCL-oriented Simpletrack benchmark built for a selec | | __intel__ | __rocm__ | __nvidia__ | __pocl__ | |--------------|:-----------:|:-----------:|:--------:|:----------:| | __GPU__ | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | -| __CPU__ | :heavy_check_mark: | :grey_question: | | :heavy_check_mark: | +| __CPU__ | :heavy_check_mark: | | | :heavy_check_mark: | # Usage @@ -33,15 +33,15 @@ Options: - Use the benchmark option "all" to execute runs on all available devices: ```~$ docker run --rm <image:tag> -b "all"``` - To discover available platforms use the show option: ```~$ docker run --rm <image:tag> -s``` -The benchmark mode allows to generate logs and output files in a default location (/simpletrack/examples/lhc/jobs or $CI_PROJECT_DIR) for either a single or all available devices. +The benchmark mode allows to generate logs and output files in a default location (/tmp/jobs or $CI_PROJECT_DIR) for either a single or all available devices. -## Docker GPU Passthrough +## GPU Passthrough To passthrough the device to the container, use the following options: -| Target | Passthrough option | -|:------------|:-------------------| -| __Nvidia__ | ```--gpus all``` | -| __AMD__ | ```--device /dev/kfd --device /dev/dri``` | -| __Intel__ | ```--device /dev/dri``` | +| Target | Docker | Singularity | +|:------------|:-------------------|:------------| +| __Nvidia__ | ```--gpus all``` | ```--nv``` | +| __AMD__ | ```--device /dev/kfd --device /dev/dri``` | ```--rocm``` | +| __Intel__ | ```--device /dev/dri``` | | diff --git a/lhc/simpletrack/lhc-simpletrack.sh b/lhc/simpletrack/lhc-simpletrack.sh index 8bf0ca1d6bc3acc4b15a515eeaf950ca2b183925..5ff77760f4b41cbcc15cd9d8357511e588208ed6 100755 --- a/lhc/simpletrack/lhc-simpletrack.sh +++ b/lhc/simpletrack/lhc-simpletrack.sh @@ -73,7 +73,7 @@ get_json() { ################################### ####### Main ###################### -if [ ! "$CI_PROJECT_DIR" == "" ]; then WORK_DIR=$CI_PROJECT_DIR/jobs; else WORK_DIR=`pwd`/jobs; fi +if [ ! "$CI_PROJECT_DIR" == "" ]; then WORK_DIR=$CI_PROJECT_DIR/jobs; else WORK_DIR="/tmp/jobs"; fi if [ ! -d $WORK_DIR ]; then mkdir -p $WORK_DIR; fi if [ -f $WORK_DIR/out.log ]; then rm $WORK_DIR/out.log; fi