You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using LIKWID
using CUDA
LIKWID.init_topology_gpu()
N =10_000
a =3.141f0# Float32
x = CUDA.rand(Float32, N)
y = CUDA.rand(Float32, N)
z = CUDA.zeros(Float32, N)
saxpy!(z, a, x, y) = z .= a .* x .+ y
saxpy!(z, a, x, y); # warmup
metrics, events =@nvmon"FLOPS_SP"saxpy!(z, a, x, y);
Running essentially the same thing under likwid-perfctr and using the GPU Marker API
# perfctr_gpu.jlusing LIKWID
using CUDA
const N =10_000const a =3.141f0# Float32const x = CUDA.rand(Float32, N)
const y = CUDA.rand(Float32, N)
const z = CUDA.zeros(Float32, N)
saxpy!(z,a,x,y) = z .= a .* x .+ y
saxpy!(z,a,x,y) # warmup
GPUMarker.init()
GPUMarker.startregion("saxpy")
saxpy!(z,a,x,y)
GPUMarker.stopregion("saxpy")
GPUMarker.close()
gives
The metric values don't make sense!?
The text was updated successfully, but these errors were encountered: