-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build issue with RHEL8 #192
Comments
I spend some time looking into what to do with terminate_xsimk.
@keryell: what do you think ? |
Yes it is possible to make optional this hack work-around the Xsim control mess from XRT. |
Hi all - I'll try to test here with GCC 12, although I'll need to install it via Spack since RHEL hasn't yet released a toolset version of it. I am not quite sure what terminate_xsimk does so maybe some brief explanation in the documentation might help to know if it is needed or not. |
The short explication is that the simulator used for hw_emu is often not cleanup by XRT after it is used. and the simulator also has memory leaks which means that if left as is and given enough time it will eat up all the RAM and the eating of RAM gets faster for each xsim process that are running. what terminate_xsimk does is cleaunp the xsim process when the SYCL application terminates to make sure we dont leave any xsim process behind. but this doesn't solve everything because if the SYCL application is killed by uncatchable signals (like while debugging) it will not execute terminate_xsimk. so what we have on our machines is a background process that will periodically cleanup xsims that are not in use. and the background process has prevent any of our machines from having xsim related issues for a few month now. but terminate_xsimk is my old attempt at solving this issue. so I am not sure it is worth having terminate_xsimk at all since it is not sufficient to solve the issue it is trying to solve. and I propose instead to provide the sources for my background process and ask people having issues to use this instead. not that it take a long time for 1 xsim process to eat all the RAM. so if you are either rebooting frequently not using hw_emu too much you will likely not experience the issue. |
Hi all - I was able to compile through using a Spack installed version of GCC12 to install this toolchain. RHEL8 doesn't have gcc12 yet as a devtoolset, so I ran the following to install it.
I'm still struggling with compiling some of the sample codes, but I think I at least have a working version of triSYCL LLVM on RHEL8 to test against. @Ralender - I'm ok with closing this issue unless you want to keep it open to keep track of xsimk issues. |
Nice to see you were able to make progress. |
Hi @keryell and @Ralender - apologies for the long delay. I had to reorganize my thoughts and switch to some other projects. I can say definitively that the compiler builds correctly, but I've been unable to get a full sample to compile all the way through on RHEL8. I've worked through several errors, some of which I might file as separate issues (I had to comment some lines in sycl_vxx.py for example which may or may not actually be a bug). The one error I can say I'm puzzled by happened a while back and seems to be related to the
I did want to follow up and ask is there a recommended version of Vitis that we should try to use? We have many of them installed locally, so I've tested with 2021.1 and 2022.1 recently. I think we also recently acquired a non-HBM Alveo board (U250) if that's a better platform to test against. |
about the
|
Describe the bug
I am trying to build TriSYCL for Redhat 8, and I am running into an error where libpi_opencl requires libstdc++fs, but it doesn't seem to be linked into the standard CMake build. Is there a workaround I can use?
To Reproduce
target_link_libraries(libstdc++fs)
could be added somewhere to the build.Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: