JuliaORNL / JACC.jl

CPU/GPU parallel performance portable layer in Julia via functions as arguments
MIT License
21 stars 13 forks source link

AMD Backend Iteration goes above expected #119

Open JValGLZ opened 2 weeks ago

JValGLZ commented 2 weeks ago

In my kernel function, the last section is to store a value inside a JACC Array. It appears as the following:

verification[lookups] = max_idx

I was originally testing on the cuda backend and saw no issues. When I switched to amdgpu backend, my program did not work. I checked the issue and it was that the iterations (lookups variable in my example) had gone beyond what they were set which was 17,000,000. I fixed this by using an if statement that updated the array only if it was within the index.