From e5f211fc38ad9ee4bbcbb57c1e06dc1428e416e3 Mon Sep 17 00:00:00 2001 From: "Michael F. Herbst" Date: Sat, 11 Nov 2023 11:35:15 +0100 Subject: [PATCH] Update CUDA version (#31) --- .bumpversion.cfg | 2 +- .github/workflows/CompatHelper.yaml | 20 ++++++++++++++++++++ .github/workflows/ci.yaml | 3 ++- .gitlab-ci.yml | 12 +++++++++--- Project.toml | 6 +++--- README.md | 2 +- 6 files changed, 36 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/CompatHelper.yaml diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 26524dc..1c87b1a 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.3.15 +current_version = 0.3.16 commit = True tag = False diff --git a/.github/workflows/CompatHelper.yaml b/.github/workflows/CompatHelper.yaml new file mode 100644 index 0000000..06ec3fc --- /dev/null +++ b/.github/workflows/CompatHelper.yaml @@ -0,0 +1,20 @@ +name: CompatHelper + +on: + schedule: + - cron: '00 00 * * *' + +jobs: + CompatHelper: + runs-on: ubuntu-latest + steps: + - uses: julia-actions/setup-julia@latest + with: + version: '1' + - name: Pkg.add("CompatHelper") + run: julia -e 'using Pkg; Pkg.add("CompatHelper")' + - name: CompatHelper.main() + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} + run: julia -e 'using CompatHelper; CompatHelper.main()' diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5ba1d59..b3aac88 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,6 +10,7 @@ concurrency: # Cancel intermediate builds: only if it is a pull request build. group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} @@ -17,7 +18,7 @@ jobs: strategy: fail-fast: false matrix: - version: ['1.7'] + version: ['1.8'] os: - ubuntu-latest - macOS-latest diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fb36268..0e08c74 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,7 +9,8 @@ stages: julia/1.9-n2: stage: test variables: - SCHEDULER_PARAMETERS: "-N 1 -n 1 -c 16 --gres=gpu:a100:1 --qos=devel -p dgx -t 00:10:00 -A hpc-prf-dftkjl" + SCHEDULER_PARAMETERS: "-N 1 -n 1 -c 16 --gres=gpu:a100:1 --qos=devel -p dgx -t 00:20:00 -A hpc-prf-dftkjl" + JULIA_DEPOT_PATH: "/scratch/hpc-prf-dftkjl/dftkjl01/.julia-ci" JULIA_NUM_THREADS: "1" # GPU and multi-threading not yet compatible coverage: '/\(\d+.\d+\%\) covered/' rules: @@ -18,8 +19,13 @@ julia/1.9-n2: - if: $CI_PIPELINE_SOURCE == "external_pull_request_event" when: manual script: - # - module load lang/JuliaHPC/1.9.0-foss-2022a-CUDA-11.7.0 - - module load lang/Julia/1.9.0-linux-x86_64 + - module load lang/JuliaHPC/1.9.3-foss-2022a-CUDA-11.7.0 + - julia --project=. -e ' + using Pkg; Pkg.instantiate(); + Pkg.add("CUDA"); + using CUDA; + CUDA.set_runtime_version!(v"11.7"; local_toolkit=true) + ' - julia --color=yes --project=. -e ' using Pkg; Pkg.test(; coverage=true, test_args=["gpu"]) diff --git a/Project.toml b/Project.toml index 4e9b3b8..aea7c5e 100644 --- a/Project.toml +++ b/Project.toml @@ -1,14 +1,14 @@ authors = ["Jason Eu ", "Michael F. Herbst "] name = "Libxc" uuid = "66e17ffc-8502-11e9-23b5-c9248d0eb96d" -version = "0.3.15" +version = "0.3.16" [compat] -CUDA = "4" +CUDA = "5" Libxc_GPU_jll = "6" Libxc_jll = "6" Requires = "1" -julia = "1.7" +julia = "1.8" [deps] Libxc_GPU_jll = "25af9330-9b41-55d4-a324-1a83c0a0a1ac" diff --git a/README.md b/README.md index 4a1d339..ac64b07 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ This package provides Julia bindings to the [libxc](https://tddft.org/programs/libxc/) library for common exchange-correlation functionals in density-functional theory. -At least **Julia 1.7** is required. +At least **Julia 1.8** is required. ## Usage Install the library from Julia as usual: