Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
744 Discussions

[CUDA] Wrong sycl::item value for prime number sycl::range

tdavidcl
Beginner
1,900 Views

Hi,

I just found a bug in dpc++ (intel/llvm git commit : b95b2d8). 

 

 

queue.submit([&](sycl::handler &cgh) {

    cgh.parallel_for(sycl::range<1>{86413},[=](sycl::item<1> item){
        if (item.get_linear_id() >= 86413) {
            sycl::ext::oneapi::experimental::printf(" 86413 error\n");
        }
    });


}).wait();

 

 

 This snippet execute the printf statement, it seems to be related to prime number sizes (86413 is a prime).

This can be worked around by switching to a nd_range ...

 

Compiler flags : -fsycl -fsycl-targets=nvptx64-nvidia-cuda

 

Any idea why this is the case ?

Thanks,

Timothée David--Cléris

0 Kudos
5 Replies
NoorjahanSk_Intel
Moderator
1,869 Views

Hi,


Thanks for posting in Intel Communities.


These forums are intended to support the queries related to Intel Products. 

As you are using opensource oneAPI, we suggest you raise this issue in GitHub for better assistance as we do not provide support for opensource oneAPI in this forum.

https://github.com/intel/llvm/issues


So, Could you please confirm whether can we go ahead and close this issue?


Thanks & Regards,

Noorjahan.


0 Kudos
tdavidcl
Beginner
1,819 Views

Hi,

 

I just saw that an issue about this bug was raised on the intel/llvm GitHub. 

 


we suggest you raise this issue in GitHub for better assistance as we do not provide

 The issues are closed on the intel/llvm GitHub :"An owner of this repository has limited the ability to open an issue to users that have contributed to this repository in the past.". This only leaves this forum to raise potential issues.

 

Thanks for the reply,

Timothée David--Cléris

0 Kudos
NoorjahanSk_Intel
Moderator
1,756 Views

Hi,


We are working on your issue, we will get back to you soon.


Thanks & Regards,

Noorjahan.


0 Kudos
NoorjahanSk_Intel
Moderator
1,664 Views

Hi,

 

Apologies for the late response.

 

The right place to raise this issue is Github intel/llvm repro.

We suggest you to raise this issue in GitHub after a couple of weeks, as the permission-related issues will be fixed.

Please let us know if you have any other issues. If not, can we go ahead and close this issue?

 

Thanks & Regards,

Noorjahan.

 

 

0 Kudos
NoorjahanSk_Intel
Moderator
1,626 Views

Hi,


I have not heard back from you, so I will close this inquiry now. If you need further assistance, please post a new question.


Thanks & Regards,

Noorjahan.


0 Kudos
Reply