Skip to content

Commit

Permalink
Fix intrinsic test.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Jan 9, 2024
1 parent e8e7954 commit 4b07020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/core/device/intrinsics/cooperative_groups.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if capability(device()) >= v"6.0" && attribute(device(), CUDA.DEVICE_ATTRIBUTE_C
# (the occupancy API could be used to calculate how many blocks can fit per SM,
# but that doesn't matter for the tests, so we assume a single block per SM.)
maxBlocks = attribute(device(), CUDA.DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT)
kernel = cufunction(kernel_vadd, NTuple{3, CuDeviceArray{Float32,2,AS.Global}})
kernel = cufunction(kernel_vadd, NTuple{3, CuDeviceArray{Float32,2,AS.Global,Int}})
maxThreads = CUDA.maxthreads(kernel)

a = rand(Float32, maxBlocks, maxThreads)
Expand Down

0 comments on commit 4b07020

Please sign in to comment.