Skip to content

Commit

Permalink
pc2 config
Browse files Browse the repository at this point in the history
  • Loading branch information
mfherbst committed May 17, 2023
1 parent 2e9a1e0 commit 8a39dcb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
*.jl.mem
deps/deps.jl
Manifest.toml
LocalPreferences.toml
/LocalPreferences.toml
.vscode
.CondaPkg
21 changes: 16 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,28 @@ julia/1.8-n2:
# SCHEDULER_PARAMETERS: "-N 1 -n 1 -c 16 --gres=gpu:a100:1 --qos=devel -p dgx -t 00:15:00 -A hpc-prf-dftkjl"
SCHEDULER_PARAMETERS: "-N 1 -n 1 -c 16 --gres=gpu:a100:1 -p gpu -t 00:30:00 -A hpc-prf-dftkjl"
JULIA_NUM_THREADS: "1" # GPU and multi-threading not yet compatible
JULIA_LOAD_PATH: "test/configuration_cuda11:" # Needed to pick up LocalPreferences.toml
coverage: '/\(\d+.\d+\%\) covered/'
rules:
- if: $CI_COMMIT_BRANCH == "master"
- if: $CI_PIPELINE_SOURCE == "external_pull_request_event" && $CI_EXTERNAL_PULL_REQUEST_SOURCE_BRANCH_NAME =~ /gpu$/
- if: $CI_PIPELINE_SOURCE == "external_pull_request_event"
when: manual
script:
- module load lang/JuliaHPC/1.8.5-foss-2022a-CUDA-11.7.0
- julia --color=yes --project=. -e '
using Pkg;
Pkg.test(; coverage=true, test_args=["gpu"])
'
- module load lang/JuliaHPC/1.9.0-foss-2022a-CUDA-11.7.0
# testing
# - julia --color=yes --project=. -e '
# using Pkg;
# Pkg.test(; coverage=true, test_args=["gpu"])
# '
# The above does not work, because Pkg.test seems just ignores the JULIA_LOAD_PATH
# and thus does not pick up the custom preferences ... so we need to do it manually
- julia --color=yes -e 'using Pkg; Pkg.add("TestEnv")'
- julia --color=yes --code-coverage --project=. -e '
using TestEnv;
TestEnv.activate("DFTK");
include("test/runtests.jl")
' gpu
# end testing
- julia --color=yes --project=test/coverage -e 'import Pkg; Pkg.instantiate()'
- julia --color=yes --project=test/coverage test/coverage/coverage.jl
2 changes: 2 additions & 0 deletions test/configuration_cuda11/LocalPreferences.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[CUDA_Runtime_jll]
version = "11.8"
3 changes: 0 additions & 3 deletions test/Project.toml → test/configuration_cuda11/Project.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
[extras]
CUDA_Runtime_jll = "76a88914-d11a-5bdc-97e0-2f5a05c973a2"

[preferences.CUDA_Runtime_jll]
version = "11.8"

0 comments on commit 8a39dcb

Please sign in to comment.