Skip to content

Commit 1414054

Browse files
authored
Move from CUDA to CUDACore (#38)
1 parent 0c17127 commit 1414054

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

Project.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
name = "StridedViews"
22
uuid = "4db3bf67-4bd7-4b4e-b153-31dc3fb37143"
3-
version = "0.4.6"
4-
authors = ["Lukas Devos <ldevos98@gmail.com>", "Jutho Haegeman <jutho.haegeman@ugent.be>"]
3+
authors = ["Lukas Devos <lukas.devos@ugent.be>", "Jutho Haegeman <jutho.haegeman@ugent.be>"]
4+
version = "0.5.0"
55

66
[deps]
77
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
88
PackageExtensionCompat = "65ce6f38-6b18-4e1d-a461-8949797d7930"
99

1010
[weakdeps]
1111
AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e"
12-
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
12+
CUDACore = "bd0ed864-bdfe-4181-a5ed-ce625a5fdea2"
1313
JLArrays = "27aeb0d3-9eb9-45fb-866b-73c2ecf80fcb"
1414
Metal = "dde4c033-4e86-420c-a63e-0dd931031962"
1515
PtrArrays = "43287f4e-b6f4-7ad1-bb20-aadabca52c3d"
1616

1717
[extensions]
1818
StridedViewsAMDGPUExt = "AMDGPU"
19-
StridedViewsCUDAExt = "CUDA"
19+
StridedViewsCUDACoreExt = "CUDACore"
2020
StridedViewsJLArraysExt = "JLArrays"
2121
StridedViewsPtrArraysExt = "PtrArrays"
2222

2323
[compat]
2424
AMDGPU = "2"
2525
Aqua = "0.8"
26-
CUDA = "4,5"
26+
CUDACore = "6"
2727
JET = "0.9, 0.10, 0.11"
2828
JLArrays = "0.3.1"
2929
LinearAlgebra = "1.6"
@@ -37,7 +37,7 @@ julia = "1.10"
3737
[extras]
3838
AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e"
3939
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
40-
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
40+
CUDACore = "bd0ed864-bdfe-4181-a5ed-ce625a5fdea2"
4141
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
4242
JLArrays = "27aeb0d3-9eb9-45fb-866b-73c2ecf80fcb"
4343
Metal = "dde4c033-4e86-420c-a63e-0dd931031962"
@@ -46,4 +46,4 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
4646
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
4747

4848
[targets]
49-
test = ["Test", "Random", "Aqua", "JET", "PtrArrays", "CUDA", "AMDGPU", "JLArrays", "Metal"]
49+
test = ["Test", "Random", "Aqua", "JET", "PtrArrays", "CUDACore", "AMDGPU", "JLArrays", "Metal"]
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
module StridedViewsCUDAExt
1+
module StridedViewsCUDACoreExt
22

33
using StridedViews
4-
using CUDA
5-
using CUDA: Adapt, CuPtr
4+
using CUDACore
5+
using CUDACore: Adapt, CuPtr
66

77
const CuStridedView{T, N, A <: CuArray{T}} = StridedView{T, N, A}
88

test/runtests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,16 +315,16 @@ if !is_buildkite
315315
end
316316
end
317317

318-
using CUDA, AMDGPU, Metal
318+
using CUDACore, AMDGPU, Metal
319319

320-
if CUDA.functional()
320+
if CUDACore.functional()
321321
@testset "CuArrays with StridedView" begin
322322
@testset for T in (Float64, ComplexF64)
323-
A = CUDA.randn(T, 10, 10, 10, 10)
323+
A = CUDACore.randn(T, 10, 10, 10, 10)
324324
@test isstrided(A)
325325
B = StridedView(A)
326326
@test B isa StridedView
327-
CUDA.@allowscalar begin
327+
CUDACore.@allowscalar begin
328328
@test B == A
329329
end
330330
end

0 commit comments

Comments
 (0)