Skip to content

Commit df99c05

Browse files
committed
More fixes
1 parent 6bb9175 commit df99c05

File tree

5 files changed

+20
-352
lines changed

5 files changed

+20
-352
lines changed

src/blas/librocblas.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ struct rocblas_bf8
4444
data::UInt8
4545
end
4646

47-
mutable struct ihipStream_t end
48-
49-
const hipStream_t = Ptr{ihipStream_t}
50-
5147
mutable struct rocblas_device_malloc_base end
5248

5349
const rocblas_int = Int32

src/sparse/error.jl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
export ROCSPARSEError
22

3+
@cenum rocsparse_status_::UInt32 begin
4+
rocsparse_status_success = 0
5+
rocsparse_status_invalid_handle = 1
6+
rocsparse_status_not_implemented = 2
7+
rocsparse_status_invalid_pointer = 3
8+
rocsparse_status_invalid_size = 4
9+
rocsparse_status_memory_error = 5
10+
rocsparse_status_internal_error = 6
11+
rocsparse_status_invalid_value = 7
12+
rocsparse_status_arch_mismatch = 8
13+
rocsparse_status_zero_pivot = 9
14+
rocsparse_status_not_initialized = 10
15+
rocsparse_status_type_mismatch = 11
16+
rocsparse_status_requires_sorted_storage = 12
17+
rocsparse_status_thrown_exception = 13
18+
rocsparse_status_continue = 14
19+
end
20+
21+
const rocsparse_status = rocsparse_status_
22+
323
struct ROCSPARSEError <: Exception
424
code::rocsparse_status
525
end

src/sparse/librocsparse.jl

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,6 @@ mutable struct _rocsparse_handle end
44

55
const rocsparse_handle = Ptr{_rocsparse_handle}
66

7-
@cenum rocsparse_status_::UInt32 begin
8-
rocsparse_status_success = 0
9-
rocsparse_status_invalid_handle = 1
10-
rocsparse_status_not_implemented = 2
11-
rocsparse_status_invalid_pointer = 3
12-
rocsparse_status_invalid_size = 4
13-
rocsparse_status_memory_error = 5
14-
rocsparse_status_internal_error = 6
15-
rocsparse_status_invalid_value = 7
16-
rocsparse_status_arch_mismatch = 8
17-
rocsparse_status_zero_pivot = 9
18-
rocsparse_status_not_initialized = 10
19-
rocsparse_status_type_mismatch = 11
20-
rocsparse_status_requires_sorted_storage = 12
21-
rocsparse_status_thrown_exception = 13
22-
rocsparse_status_continue = 14
23-
end
24-
25-
const rocsparse_status = rocsparse_status_
26-
277
function rocsparse_create_handle(handle)
288
AMDGPU.prepare_state()
299
@check @ccall librocsparse.rocsparse_create_handle(handle::Ptr{rocsparse_handle})::rocsparse_status
@@ -44,10 +24,6 @@ function rocsparse_get_status_description(status)
4424
@check @ccall librocsparse.rocsparse_get_status_description(status::rocsparse_status)::Ptr{Cchar}
4525
end
4626

47-
mutable struct ihipStream_t end
48-
49-
const hipStream_t = Ptr{ihipStream_t}
50-
5127
function rocsparse_set_stream(handle, stream)
5228
AMDGPU.prepare_state()
5329
@check @ccall librocsparse.rocsparse_set_stream(handle::rocsparse_handle,

src/sparse/librocsparse_common.jl

Lines changed: 0 additions & 323 deletions
This file was deleted.

0 commit comments

Comments
 (0)