Skip to content

Commit 9915cdd

Browse files
committed
Cleanup
1 parent 58d5e01 commit 9915cdd

File tree

3 files changed

+15
-37
lines changed

3 files changed

+15
-37
lines changed

src/ROCKernels.jl

+4
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ end
166166
# TODO
167167
end
168168

169+
# Reduction.
170+
171+
KA.supports_warp_reduction(::ROCBackend) = true
172+
169173
@device_override @inline function KA.__shfl_down(val, offset)
170174
AMDGPU.Device.shfl_down(val, offset)
171175
end

t.jl

-24
This file was deleted.

test/runtests.jl

+11-13
Original file line numberDiff line numberDiff line change
@@ -113,22 +113,20 @@ data = String["$np" "$(AMDGPU.device())" join(TARGET_TESTS, ", ");]
113113
PrettyTables.pretty_table(data; header=["Workers", "Device", "Tests"], crop=:none)
114114

115115
runtests(AMDGPU; nworkers=np, nworker_threads=1, testitem_timeout=60 * 30) do ti
116-
return ti.name == "kernelabstractions"
117-
118116
for tt in TARGET_TESTS
119117
startswith(ti.name, tt) && return true
120118
end
121119
return false
122120
end
123121

124-
# if "core" in TARGET_TESTS && Sys.islinux()
125-
# @info "Testing `Hostcalls` on the main thread."
126-
# @testset "Hostcalls" begin
127-
# include("device/hostcall.jl")
128-
129-
# # TODO 1.11 fails
130-
# if VERSION < v"1.11-"
131-
# include("device/output.jl")
132-
# end
133-
# end
134-
# end
122+
if "core" in TARGET_TESTS && Sys.islinux()
123+
@info "Testing `Hostcalls` on the main thread."
124+
@testset "Hostcalls" begin
125+
include("device/hostcall.jl")
126+
127+
# TODO 1.11 fails
128+
if VERSION < v"1.11-"
129+
include("device/output.jl")
130+
end
131+
end
132+
end

0 commit comments

Comments
 (0)