monofuel / hippo

HIP / CUDA library for Nim
MIT License
45 stars 1 forks source link

re-work launch kernel #5

Closed monofuel closed 2 months ago

monofuel commented 2 months ago
monofuel commented 2 months ago

goofball d'oh

monofuel commented 2 months ago

ah, hipModuleLaunchKernel expects a hipFunction_t which is some weird class, this is not the right approach...

monofuel commented 2 months ago

very strange, tests pass but the vector_sum_cpu.nim build fails: https://github.com/monofuel/hippo/actions/runs/10659502190/job/29542124225

works on my machine and in an ubuntu container

monofuel commented 2 months ago

d'oh, the error was actually with the second command, not the first. the hip launch kernel macro should not run when building for cuda.