Skip to content

Commit dbab658

Browse files
authored
Bump jll and rewrite testing (#42)
* Bump jll and rewrite testing * fix * up
1 parent 606e349 commit dbab658

File tree

4 files changed

+76
-17
lines changed

4 files changed

+76
-17
lines changed

.buildkite/pipeline.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
steps:
2+
- label: "CUDA Julia v{{matrix.version}}"
3+
matrix:
4+
setup:
5+
version:
6+
- "1.9"
7+
- "1.10"
8+
plugins:
9+
- JuliaCI/julia#v1:
10+
version: "{{matrix.version}}"
11+
agents:
12+
queue: "juliagpu"
13+
cuda: "*"
14+
if: build.message !~ /\[skip tests\]/
15+
timeout_in_minutes: 60
16+
commands: |
17+
echo "--- Setup and Test"
18+
julia --color=yes -e '
19+
import Pkg
20+
Pkg.develop(; path = pwd())
21+
Pkg.test(args=["--gpu"])
22+
env:
23+
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager
24+
25+
- label: "AMDGPU Julia v{{matrix.version}}"
26+
matrix:
27+
setup:
28+
version:
29+
- "1.10"
30+
plugins:
31+
- JuliaCI/julia#v1:
32+
version: "{{matrix.version}}"
33+
agents:
34+
queue: "juliagpu"
35+
rocm: "*"
36+
if: build.message !~ /\[skip tests\]/
37+
timeout_in_minutes: 60
38+
commands: |
39+
echo "--- Setup and Test"
40+
julia --color=yes -e '
41+
import Pkg
42+
Pkg.develop(; path = pwd())
43+
Pkg.test(args=["--gpu"])
44+
env:
45+
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager
46+
47+
# - label: "Metal Julia v{{matrix.version}}"
48+
# matrix:
49+
# setup:
50+
# version:
51+
# - "1.8"
52+
# - "1.9"
53+
# plugins:
54+
# - JuliaCI/julia#v1:
55+
# version: "{{matrix.version}}"
56+
# agents:
57+
# queue: "juliaecosystem"
58+
# os: "macos"
59+
# arch: "aarch64"
60+
# if: build.message !~ /\[skip tests\]/
61+
# timeout_in_minutes: 60
62+
# commands: |
63+
# echo "--- Setup Julia packages"
64+
# julia --color=yes -e '
65+
# import Pkg
66+
# Pkg.develop(; path = pwd())
67+
# Pkg.develop(; path = joinpath(pwd(), "lib", "EnzymeCore"))
68+
# Pkg.develop(; name = "Metal")' || exit 3
69+
70+
# echo "+++ Run tests"
71+
# julia --color=yes test/metal.jl
72+
# env:
73+
# JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager

.github/workflows/CI.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,17 @@ jobs:
2323
version:
2424
- '1.9'
2525
- '1.10'
26+
- ~1.11.0-0
2627
- 'nightly'
2728
os:
2829
- ubuntu-20.04
2930
- macOS-latest
30-
- windows-latest
3131
arch:
3232
- x64
3333
assertions:
3434
- false
3535
libReactant: [packaged]
36-
exclude:
37-
- os: windows-latest
38-
arch: x64
39-
libReactant: local
4036
include:
41-
# - os: ubuntu-20.04
42-
# arch: x86
43-
# libReactant: packaged
44-
# version: '1.9'
45-
# assertions: false
46-
# - os: ubuntu-20.04
47-
# arch: x86
48-
# libReactant: packaged
49-
# version: '1.10'
50-
# assertions: false
5137
- os: ubuntu-20.04
5238
arch: x64
5339
libReactant: packaged

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Enzyme = "0.11, 0.12"
3535
NNlib = "0.9"
3636
PackageExtensionCompat = "1"
3737
Preferences = "1.4"
38-
Reactant_jll = "0.0.11"
38+
Reactant_jll = "0.0.12"
3939
julia = "1.9"
4040

4141
[extras]

deps/build_local.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ run(Cmd(`$(Base.julia_cmd().exec[1]) --project=. -e "using Pkg; Pkg.instantiate(
2323
run(Cmd(`bazel build -c dbg --action_env=JULIA=$(Base.julia_cmd().exec[1])
2424
--repo_env HERMETIC_PYTHON_VERSION="3.10"
2525
--check_visibility=false --verbose_failures :libReactantExtra.so :Builtin.inc.jl :Arith.inc.jl :Affine.inc.jl :Func.inc.jl :Enzyme.inc.jl :StableHLO.inc.jl :CHLO.inc.jl :VHLO.inc.jl`, dir=source_dir,
26-
env=Dict("PATH"=>joinpath(source_dir, "..")*":"*ENV["PATH"])))
26+
env=Dict("HOME"=>ENV["HOME"], "PATH"=>joinpath(source_dir, "..")*":"*ENV["PATH"])))
2727

2828
run(Cmd(`rm -f libReactantExtra.dylib`, dir=joinpath(source_dir, "bazel-bin")))
2929
run(Cmd(`ln -s libReactantExtra.so libReactantExtra.dylib`, dir=joinpath(source_dir, "bazel-bin")))

0 commit comments

Comments
 (0)