JuliaGPU / JuliaGPU/KernelAbstractions.jl

Kernel only gives proper result when adding `@print()`

Open
#547 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
523
Forks
88
Avg merge
1d 11h
Merged PRs (30d)
25

Description

I'm experiencing a weird bug where the kernel I wrote only gives the expected result when I add a print statement in a particular place:

https://github.com/SouthEndMusic/SplineGrids.jl/blob/08f0e91a70c547e807b0a8bd89058b4cb8c06a43/src/spline_dimension.jl#L48-L70

It was suggested on Slack that it could be a synchronization issue, but the different threads are completely independent from eachother.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with src/spline_dimension.jl at the linked lines and reproduce the kernel with and without the added @print statement. Check whether the expected result remains consistent without the print, and use that comparison to determine whether the issue is synchronization-related.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
hpc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.