- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to run a gaussian blur example on oneAPI dev cloud. I am able to build the example after some tweaking but the execution aborts without throwing any exception or errors. attaching files
u33211@login-1:~/MyFiles/gaussian_blur$ ./q run.sh
Submitting job:
439820.v-qsvr-1.aidevcloud
Job ID Name User Time Use S Queue
------------------------- ---------------- --------------- -------- - -----
438492.v-qsvr-1 ...ub-singleuser u33211 00:03:04 R jupyterhub
439820.v-qsvr-1 run.sh u33211 0 Q batch
Waiting for Output...........
########################################################################
# Date: Tue Dec 10 03:16:11 PST 2019
# Job ID: 439820.v-qsvr-1.aidevcloud
# User: u33211
# Resources: neednodes=1:gpu:ppn=2,nodes=1:gpu:ppn=2,walltime=06:00:00
########################################################################
rm -rf ./gaussian-blur.exe
dpcpp gaussian-blur.cpp -o ./gaussian-blur.exe -I. -lOpenCL -lsycl
./gaussian-blur.exe Lenna.png
Gaussian filter created..
Optimal Local Size =64
Starting Kernel..
Finished Kernel..
Makefile:16: recipe for target 'run' failed
########################################################################
# End of output for job 439820.v-qsvr-1.aidevcloud
# Date: Tue Dec 10 03:16:18 PST 2019
########################################################################
make: *** [run] Aborted
Any help is appriciated.
Thanks,
- Tags:
- General Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Kuljeet,
I have gone through your code. I can see that you haven't specified inputData and outputData argument to the image<2> constructor. Advising you to make the following changes to your code on line numbers 154 and 155.
On line number 154, From cl::sycl::image<2> image_in(co::rgba, ct::unorm_int8, imgRange); (your code) to cl::sycl::image<2> image_in(inputData,co::rgba, ct::unorm_int8, imgRange); (suggested change)
On line number 155, From cl::sycl::image<2> image_out(co::rgba, ct::unorm_int8, imgRange); (your code) to cl::sycl::image<2> image_out(outputData,co::rgba, ct::unorm_int8, imgRange); (suggested change)
Let us know if the suggested changes resolve your issue.
Rahul
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Kuljeet,
Thanks for reaching out to us. We will get back to you soon.
Regards,
Sushma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Kuljeet,
I have gone through your code. I can see that you haven't specified inputData and outputData argument to the image<2> constructor. Advising you to make the following changes to your code on line numbers 154 and 155.
On line number 154, From cl::sycl::image<2> image_in(co::rgba, ct::unorm_int8, imgRange); (your code) to cl::sycl::image<2> image_in(inputData,co::rgba, ct::unorm_int8, imgRange); (suggested change)
On line number 155, From cl::sycl::image<2> image_out(co::rgba, ct::unorm_int8, imgRange); (your code) to cl::sycl::image<2> image_out(outputData,co::rgba, ct::unorm_int8, imgRange); (suggested change)
Let us know if the suggested changes resolve your issue.
Rahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Many thanks Rahul,
I was able to execute the code sucessfuly with the changes suggested.
Is there any document that captures the differences / enhancements between DPC++ and SYCL1.2 ?
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Kuljeet,
Good to know that your issue is resolved. We are closing this thread.
Request you to raise a new thread for "Is there any document that captures the differences/enhancements between DPC++ and SYCL1.2 ?" query.
Kaleem
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page