Skip to content

Commit d6ab739

Browse files
committed
Bump to 1.0.4
1 parent 5743e60 commit d6ab739

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "AMDGPU"
22
uuid = "21141c5a-9bdb-4563-92ae-f87d6854732e"
33
authors = ["Julian P Samaroo <jpsamaroo@jpsamaroo.me>", "Valentin Churavy <v.churavy@gmail.com>", "Anton Smirnov <tonysmn97@gmail.com>"]
4-
version = "1.0.3"
4+
version = "1.0.4"
55

66
[deps]
77
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

src/ROCKernels.jl

+2-6
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,8 @@ struct ROCBackend <: KA.GPU end
1717
Adapt.adapt_storage(::ROCBackend, a::Array) = Adapt.adapt(AMDGPU.ROCArray, a)
1818
Adapt.adapt_storage(::ROCBackend, a::AMDGPU.ROCArray) = a
1919
Adapt.adapt_storage(::KA.CPU, a::AMDGPU.ROCArray) = convert(Array, a)
20-
function Adapt.adapt_storage(
21-
to::KA.ConstAdaptor, a::AMDGPU.ROCDeviceArray{T, N, A},
22-
) where {T, N, A}
23-
AMDGPU.ROCDeviceArray(a.shape, LLVM.Interop.addrspacecast(
24-
Core.LLVMPtr{T,AMDGPU.Device.AS.Constant}, a.ptr))
25-
end
20+
Adapt.adapt_storage(::KA.ConstAdaptor, a::AMDGPU.ROCDeviceArray{T}) where T =
21+
AMDGPU.ROCDeviceArray(a.shape, LLVM.Interop.addrspacecast(Core.LLVMPtr{T,AMDGPU.Device.AS.Constant}, a.ptr))
2622

2723
KA.argconvert(::KA.Kernel{ROCBackend}, arg) = AMDGPU.rocconvert(arg)
2824
KA.get_backend(::AMDGPU.ROCArray) = ROCBackend()

src/sparse/librocsparse.jl

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ function rocsparse_get_pointer_mode(handle, pointer_mode)
3737
end
3838

3939
function rocsparse_get_version(handle, version)
40-
AMDGPU.prepare_state()
4140
@check ccall((:rocsparse_get_version, librocsparse), rocsparse_status,
4241
(rocsparse_handle, Ptr{Cint}), handle, version)
4342
end

0 commit comments

Comments
 (0)