Skip to content

Commit f54ba54

Browse files
committed
set JULIA_PROJECT and fix other backends
1 parent c022455 commit f54ba54

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

.buildkite/pipeline.yml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ steps:
3030
timeout_in_minutes: 120
3131
soft_fail:
3232
- exit_status: 3
33+
env:
34+
JULIA_PROJECT: "@cuda"
3335

3436
# - label: "CUDA Enzyme Julia {{matrix.version}}"
3537
# matrix:
@@ -75,10 +77,15 @@ steps:
7577
- JuliaCI/julia-coverage#v1:
7678
codecov: true
7779
command: |
80+
julia -e 'println("--- :julia: Developing Metal")
81+
using Pkg
82+
Pkg.develop(; name="Metal")
83+
Pkg.develop(; name="GPUArrays")'
84+
sed -i 's/^KernelAbstractions = "0\.9.*"/KernelAbstractions = "0.10"/' \${JULIA_DEPOT_PATH}/dev/Metal/Project.toml
85+
sed -i 's/^KernelAbstractions = "0\.9.*"/KernelAbstractions = "0.10"/' \${JULIA_DEPOT_PATH}/dev/GPUArrays/Project.toml
7886
julia -e 'println("--- :julia: Instantiating project")
7987
using Pkg
80-
Pkg.develop(; path=pwd())
81-
Pkg.develop(; name="Metal")' || exit 3
88+
Pkg.develop(; path=pwd())' || exit 3
8289
8390
julia -e 'println("+++ :julia: Running tests")
8491
using Pkg
@@ -90,6 +97,8 @@ steps:
9097
timeout_in_minutes: 120
9198
soft_fail:
9299
- exit_status: 3
100+
env:
101+
JULIA_PROJECT: "@metal"
93102

94103
- label: "oneAPI Julia {{matrix.version}}"
95104
matrix:
@@ -103,10 +112,15 @@ steps:
103112
- JuliaCI/julia-coverage#v1:
104113
codecov: true
105114
command: |
115+
julia -e 'println("--- :julia: Developing oneAPI")
116+
using Pkg
117+
Pkg.develop(; name="oneAPI")
118+
Pkg.develop(; name="GPUArrays")'
119+
sed -i 's/^KernelAbstractions = "0\.9.*"/KernelAbstractions = "0.10"/' \${JULIA_DEPOT_PATH}/dev/oneAPI/Project.toml
120+
sed -i 's/^KernelAbstractions = "0\.9.*"/KernelAbstractions = "0.10"/' \${JULIA_DEPOT_PATH}/dev/GPUArrays/Project.toml
106121
julia -e 'println("--- :julia: Instantiating project")
107122
using Pkg
108-
Pkg.develop(; path=pwd())
109-
Pkg.develop(; name="oneAPI")' || exit 3
123+
Pkg.develop(; path=pwd())' || exit 3
110124
111125
julia -e 'println("+++ :julia: Running tests")
112126
using Pkg
@@ -117,6 +131,8 @@ steps:
117131
timeout_in_minutes: 120
118132
soft_fail:
119133
- exit_status: 3
134+
env:
135+
JULIA_PROJECT: "@oneAPI"
120136

121137
- label: "AMDGPU Julia {{matrix.version}}"
122138
matrix:
@@ -130,10 +146,15 @@ steps:
130146
- JuliaCI/julia-coverage#v1:
131147
codecov: true
132148
command: |
149+
julia -e 'println("--- :julia: Developing AMDGPU")
150+
using Pkg
151+
Pkg.develop(; name="AMDGPU")
152+
Pkg.develop(; name="GPUArrays")'
153+
sed -i 's/^KernelAbstractions = "0\.9.*"/KernelAbstractions = "0.10"/' \${JULIA_DEPOT_PATH}/dev/AMDGPU/Project.toml
154+
sed -i 's/^KernelAbstractions = "0\.9.*"/KernelAbstractions = "0.10"/' \${JULIA_DEPOT_PATH}/dev/GPUArrays/Project.toml
133155
julia -e 'println("--- :julia: Instantiating project")
134156
using Pkg
135-
Pkg.develop(; path=pwd())
136-
Pkg.develop(; name="AMDGPU")' || exit 3
157+
Pkg.develop(; path=pwd())' || exit 3
137158
138159
julia -e 'println("+++ :julia: Running tests")
139160
using Pkg
@@ -145,6 +166,7 @@ steps:
145166
soft_fail:
146167
- exit_status: 3
147168
env:
169+
JULIA_PROJECT: "@amdgpu"
148170
JULIA_NUM_THREADS: 4
149171

150172
env:

0 commit comments

Comments
 (0)