Skip to content

Commit 0e89906

Browse files
ytdHuangalbertomercurio
authored andcommitted
optimize precompilation during runtests
1 parent 4cd59e3 commit 0e89906

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

.buildkite/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ steps:
99
- "src/**"
1010
- "ext/QuantumToolboxCUDAExt.jl"
1111
- "test/runtests.jl"
12-
- "test/ext-test/cuda_ext.jl"
12+
- "test/ext-test/gpu/**"
1313
- "Project.toml"
1414
target: ".buildkite/CUDA_Ext.yml"
1515
agents:

Project.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
3333
QuantumToolboxCUDAExt = "CUDA"
3434

3535
[compat]
36+
Aqua = "0.8"
3637
ArrayInterface = "6, 7"
3738
CUDA = "5"
3839
DiffEqBase = "6"
@@ -42,6 +43,7 @@ Distributed = "1"
4243
FFTW = "1.5"
4344
Graphs = "1.7"
4445
IncompleteLU = "0.2"
46+
JET = "0.9"
4547
LinearAlgebra = "1"
4648
LinearSolve = "2"
4749
OrdinaryDiffEqCore = "1"
@@ -59,8 +61,10 @@ Test = "1"
5961
julia = "1.10"
6062

6163
[extras]
64+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
6265
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
66+
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
6367
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
6468

6569
[targets]
66-
test = ["Test"]
70+
test = ["Aqua", "JET", "Test"]

test/ext-test/gpu/Project.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[deps]
2+
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
3+
QuantumToolbox = "6c2fb7c5-b903-41d2-bc5e-5a7c320b9fab"
4+
5+
[compat]
6+
CUDA = "5"
File renamed without changes.

test/runtests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ using QuantumToolbox
44
using QuantumToolbox: position, momentum
55
using Random
66
using SciMLOperators
7-
import SciMLOperators: ScaledOperator
87

98
const GROUP = get(ENV, "GROUP", "All")
109

@@ -32,7 +31,6 @@ core_tests = [
3231
]
3332

3433
if (GROUP == "All") || (GROUP == "Code-Quality")
35-
Pkg.add(["Aqua", "JET"])
3634
include(joinpath(testdir, "core-test", "code_quality.jl"))
3735
end
3836

@@ -45,6 +43,8 @@ if (GROUP == "All") || (GROUP == "Core")
4543
end
4644

4745
if (GROUP == "CUDA_Ext")# || (GROUP == "All")
48-
Pkg.add("CUDA")
49-
include(joinpath(testdir, "ext-test", "cuda_ext.jl"))
46+
Pkg.activate("gpu")
47+
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
48+
Pkg.instantiate()
49+
include(joinpath(testdir, "ext-test", "gpu", "cuda_ext.jl"))
5050
end

0 commit comments

Comments
 (0)