Intel® High Level Design
Support for Intel® High Level Synthesis Compiler, DSP Builder, OneAPI for Intel® FPGAs, Intel® FPGA SDK for OpenCL™
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
573 Discussions

Hough transform on Jupyter oneAPI DevCloud

DeepikaGanga
Employee
541 Views

The Hough Transform code in the Jupyter oneAPI notebook on DevCloud is not working. The source code stated in the below link has multiple compilation and linker issues:

https://jupyter.oneapi.devcloud.intel.com/user/u149154/lab/tree/Hough_Transform_on_FPGAs_Using_oneAP...

Firstly the hough_transform.cpp has couple of compilation problems which I was able to address. With that the compilation is able to progress but there are some linker errors due to which I am unable to progress.

Details of the errors are as follows:

Compilation error:

src/original/hough_transform.cpp:8:10: fatal error: 'CL/sycl/INTEL/fpga_extensions.hpp' file not found

 

Fixes:

Line 9 changed from

#include <CL/sycl/INTEL/fpga_extensions.hpp>

to

#include <sycl/ext/intel/fpga_extensions.hpp>

 

Line 72 and 76 changed from

      sycl::INTEL::

to

      sycl::ext::intel::fpga…

 

Linker error:

## u149154 is performing Hough Transform compilation emulation notebook.

/usr/bin/ld: cannot open output file bin/hough_transform.emu: No such file or directory

dpcpp: error: linker command failed with exit code 1 (use -v to see invocation)

/bin/bash: bin/hough_transform.emu: No such file or directory

 

The ‘Device-Host Split’ file has similar issues which can be addressed in a similar way.

0 Kudos
1 Solution
BoonBengT_Intel
Moderator
461 Views

Hi @DeepikaGanga,


While we are waiting for the response from the repo owner.

The error mention that it seems it just missing the bin directory my guess.


Hence can you run the command (i.e. mkdir bin) to make the directory bin and proceed with the compilation.

Hope that clarify.


Best Wishes

BB


View solution in original post

9 Replies
BoonBengT_Intel
Moderator
496 Views

Hi @DeepikaGanga,


Thank you for posting in Intel community forum and hope all is well.

Noted on the inconvenient face, question if I may where did you got the Hough Transform code from? Are they from the link below?

- https://gitlab.devtools.intel.com/aberhe/Hough_Transform_on_FPGAs_Using_oneAPI

Hope to hear from you soon.


Best Wishes

BB


DeepikaGanga
Employee
480 Views

Hi BB,

Thanks for your response. The code in your link looks similar, however I got it from the Jupyter oneAPI notebook from this link :

https://jupyter.oneapi.devcloud.intel.com/user/u149154/lab/tree/Hough_Transform_on_FPGAs_Using_oneAP...

 

Regards,

Deepika

BoonBengT_Intel
Moderator
468 Views

Hi @DeepikaGanga,


Noted on the link provided, however the link seems to be routing to your account in jupyter (i.e. suspecting u149154 would be your account ID), the hough transform project should be clone from somewhere in this cases my guess would be the gitlab repo.


Anyway, as the project are being created by someone that are unknown to us, we would try our best to look into this, hence currently we are trying to get in touch with the repo owner to clarify further on the error seen.

Will keep you posted, and thank you for the patients.


Best Wishes

BB


DeepikaGanga
Employee
463 Views

Hi BB,

Thanks for you response, sorry that you are not able to access my link.

But yes, I think it is a clone of some repo, maybe from your earlier link.

I was directed by someone to a github repository which seems to have a slightly different code including the fixes I mentioned earlier, but this file has many other changes as well. It is not clear how much of the changes need to be made to the Jupyter code in order for it to work. Here is the link to that file, hope this will be of some help.

https://github.com/intel/fpga-training/blob/main/fpga_oneapi_lab/lab/hough_transform_local_mem.cpp

 

Regards,

Deepika

BoonBengT_Intel
Moderator
462 Views

Hi @DeepikaGanga,


While we are waiting for the response from the repo owner.

The error mention that it seems it just missing the bin directory my guess.


Hence can you run the command (i.e. mkdir bin) to make the directory bin and proceed with the compilation.

Hope that clarify.


Best Wishes

BB


DeepikaGanga
Employee
459 Views

Thank you , that seems to have worked, here is the PASS status after adding the mkdir bin command.

 

DeepikaGanga_0-1649995236566.png

 

DeepikaGanga
Employee
458 Views

Hi BB, 

I have another related question, please let me know if this needs to be raised as a separate ticket.

How do we ensure these files are updated with correct code in the Hough transform application in the Jupyter notebook?  The changes I have made are in my local view and not reflected to the main repository.

Otherwise many users like me will be facing the same issue.

 

Regards,

Deepika

 

Gouda_Sankanagouda
436 Views

This is quite a bit of effort to solve a simple problem of creating a bin directory in the devcloud/jupyter environment. How do we fix the problem at the source? who exactly owns the fixing this issue? 

BoonBengT_Intel
Moderator
406 Views

Hi @DeepikaGanga/@Gouda_Sankanagouda,


Totally agreed that this should be fixed at the source, I did tried to look into the author of this repo, unfortunately it seems that user are no longer valid and currently I have escalated this to relevant team on getting inputs on how to position such repo, hope that clarify.


Good to know that it is working now, with the initial issues being resolved is this thread, it will be transitioned to community support for further help on doubts in this thread.

Thank you for the questions and as always pleasure having you here.


Best Wishes

BB


Reply