KernelAbstractions.jl icon indicating copy to clipboard operation
KernelAbstractions.jl copied to clipboard

Possible error due to KernelAbstractions while using VSCode debugger

Open sophia-wright-blue opened this issue 1 year ago • 4 comments

hello - I'm able to run a script based on an Oceananigans example in VSCode, but get an error while using the VSCode debugger on the same script that runs fine. I've shared details incl screenshots and code here:

https://github.com/CliMA/Oceananigans.jl/issues/3171

It looks like the error has something to do with the usage of KernelAbstractions - one of the authors of the Oceananigans library has added a comment in the issue above

specifically, this line of code leads to the error:

https://github.com/JuliaGPU/KernelAbstractions.jl/blob/main/src/cpu.jl#L44

it'd be very helpful if someone who has run any KernelAbstractions code with VSCode could please share some feedback to help us resolve the issue.

I've also opened an issue on the julia-vscode extension github repo here:

https://github.com/julia-vscode/julia-vscode/issues/3349

thank you

sophia-wright-blue avatar Jul 05 '23 16:07 sophia-wright-blue

I am unsure what KernelAbstractions could do here. This sounds like a fault in the debugger.

vchuravy avatar Jul 05 '23 21:07 vchuravy

thank you for replying - I've opened an issue on the julia vscode extension github repo - I'll leave this issue open until I hear back from them - thank you again!

sophia-wright-blue avatar Jul 05 '23 21:07 sophia-wright-blue

@vchuravy - we noticed that the debugger only seems to have this issue with the KernelAbstractions library - we've not encountered this issue with any other library - I've added screenshots in the Oceananigans issue if it's helpful - thank you!

sophia-wright-blue avatar Jul 05 '23 22:07 sophia-wright-blue

I have shared a minimal reproducer here in case it helps resolve this issue:

https://github.com/CliMA/Oceananigans.jl/issues/3171#issuecomment-1624346600

I've also linked this on the julia-vscode extensions repo

sophia-wright-blue avatar Jul 06 '23 21:07 sophia-wright-blue