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.
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.