Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible error due to KernelAbstractions while using VSCode debugger #405

Open
sophia-wright-blue opened this issue Jul 5, 2023 · 4 comments

Comments

@sophia-wright-blue
Copy link

sophia-wright-blue commented Jul 5, 2023

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:

CliMA/Oceananigans.jl#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:

julia-vscode/julia-vscode#3349

thank you

@vchuravy
Copy link
Member

vchuravy commented Jul 5, 2023

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

@sophia-wright-blue
Copy link
Author

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
Copy link
Author

sophia-wright-blue commented Jul 5, 2023

@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
Copy link
Author

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

CliMA/Oceananigans.jl#3171 (comment)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants