Skip to content

Commit

Permalink
non GPU devices
Browse files Browse the repository at this point in the history
  • Loading branch information
vpuri3 committed May 13, 2024
1 parent 907a038 commit 777cbbe
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions examples/eg1.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@ function main()

stM, stK = device(stM), device(stK)

@btime CUDA.@sync $mlp($x, $pM, $stM)
@btime CUDA.@sync $kan($x, $pK, $stK)
if device isa LuxDeviceUtils.AbstractLuxGPUDevice
@btime CUDA.@sync $mlp($x, $pM, $stM)
@btime CUDA.@sync $kan($x, $pK, $stK)
else
@btime $mlp($x, $pM, $stM)
@btime $kan($x, $pK, $stK)
end

nothing
end
Expand Down

0 comments on commit 777cbbe

Please sign in to comment.