Skip to content

Commit 12579a4

Browse files
Merge pull request #354 from SciML/remove-get-extension-compat
Remove Julia v1.9 get_extension compatibility code
2 parents 5b558a1 + a1df8b6 commit 12579a4

File tree

6 files changed

+5
-20
lines changed

6 files changed

+5
-20
lines changed

Project.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ MuladdMacro = "46d2c3a1-f734-5fdb-9937-b9b9aeba4221"
1717
Parameters = "d96e819e-fc66-5662-9728-84c9c7592b0a"
1818
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1919
RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
20-
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
2120
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
2221
Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46"
2322
SimpleDiffEq = "05bca326-078c-5bf0-a5bf-ce7c7982d7fd"
@@ -51,14 +50,13 @@ Metal = "0.5, 1"
5150
MuladdMacro = "0.2"
5251
Parameters = "0.12"
5352
RecursiveArrayTools = "2, 3"
54-
Requires = "1.0"
5553
SciMLBase = "2.92"
5654
Setfield = "1"
5755
SimpleDiffEq = "1"
5856
StaticArrays = "1"
5957
TOML = "1"
6058
ZygoteRules = "0.2"
61-
julia = "1.6"
59+
julia = "1.10"
6260
oneAPI = "1.2, 2"
6361

6462
[extras]

ext/AMDGPUExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module AMDGPUExt
2-
isdefined(Base, :get_extension) ? (using AMDGPU) : (using ..AMDGPU)
2+
using AMDGPU
33
import DiffEqGPU
44

55
using .AMDGPU

ext/CUDAExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module CUDAExt
2-
isdefined(Base, :get_extension) ? (using CUDA) : (using ..CUDA)
2+
using CUDA
33
import DiffEqGPU
44

55
using .CUDA

ext/MetalExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module MetalExt
2-
isdefined(Base, :get_extension) ? (using Metal) : (using ..Metal)
2+
using Metal
33
import DiffEqGPU
44

55
using .Metal

ext/oneAPIExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module oneAPIExt
2-
isdefined(Base, :get_extension) ? (using oneAPI) : (using ..oneAPI)
2+
using oneAPI
33
import DiffEqGPU
44

55
using .oneAPI

src/DiffEqGPU.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,4 @@ export GPURosenbrock23, GPURodas4, GPURodas5P, GPUKvaerno3, GPUKvaerno5
8383
export terminate!
8484

8585
# This symbol is only defined on Julia versions that support extensions
86-
if !isdefined(Base, :get_extension)
87-
using Requires
88-
end
89-
90-
@static if !isdefined(Base, :get_extension)
91-
function __init__()
92-
@require CUDA="052768ef-5323-5732-b1bb-66c8b64840ba" include("../ext/CUDAExt.jl")
93-
@require AMDGPU="21141c5a-9bdb-4563-92ae-f87d6854732e" include("../ext/AMDGPUExt.jl")
94-
@require oneAPI="8f75cd03-7ff8-4ecb-9b8f-daf728133b1b" include("../ext/oneAPIExt.jl")
95-
@require Metal="dde4c033-4e86-420c-a63e-0dd931031962" include("../ext/MetalExt.jl")
96-
end
97-
end
98-
9986
end # module

0 commit comments

Comments
 (0)