- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all.
dpcpp compiler is warning me about a missing omp directive
```
matrixLib.c:395:14: error: expected an OpenMP directive
#pragma omp smid
^
```
in the following code
```
...
#pragma omp smid
for(int i=start; i<=end ; i += step)
out_vector[midx++] = i;
```
But I read here
that omp smid directive is supported.
this works if compiled with gcc-9 or g++-9
Can you explain me what is the right directive with dpcpp?
Thanks
Danilo
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for posting in Intel Communities.
Could you please try using the 'pragma omp simd' since it is a supported directive with the dpcpp compiler? Please find the below link:
We have tried a sample code and it worked without any errors. Please find the below screenshot:
>>that omp smid directive
Could you please elaborate on how to use 'pragma omp smid'?
And also, could you please let us know the Intel DPCPP compiler version, OS details, and sample reproducer code to investigate more on your issue?
Thanks & Regards,
Varsha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We have not heard back from you. Could you please provide an update on your issue?
Thanks & Regards.
Varsha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, thank you for your answer. I think I was missing `-qopenmp` while compiling with dscpp
I couldn't find this in the docs.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Could you please find the below link where we are able to compile and run OpenMP code with dpcpp compiler:
>> thank you for your answer
Glad to know that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.
Thanks & Regards,
Varsha
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page