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
libgomp-plugin-nvptx.so.1 Not found #51
Comments
Weird, and now it came down to offloading not supported... |
The offloading stuff is compiled in and part of the package (see folder |
I think you are right, the nvptx acceleration wasn't configured properly. |
It did compile this time, but still getting the "libgomp-plugin-nvptx.so.1" not found #include < iostream> int main() Update. "Note that OpenMP offloading in GCC uses additional code generation quoted from: |
I tried your example.
to get it to link I had to use (somehow it didn't work with LTO):
The result looks like this:
So I can reproduce your issue. I copied I have submitted a bug report to GCC, see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100160 |
Nice, it links, but offloading doesn't work. omp_get_num_devices(); should return at least 1 (GPU). |
I'm not an export in this area. Maybe CUDA is needed after all? Do you have it installed? |
Just last question: did you turn off --disable-multilib while setting up the Nvptx in GCC ? |
I don't have anything installed on my system for CUDA, unless it comes with the nVidia drivers. I will add I also found that there seems to be a nvptx64-nvidia-cuda target, but GCC doesn't know it. I guess that's the LLVM/CLang target you mentioned that requires CUDA. |
I meant that Also, I've tried to use Just throwing ideas at you... :P (I really know nothing about compilers) |
No, |
Alrighty then. |
No progress yet as the recently released GCC 11 doesn't build properly yet for nvptx (see my gcc bug report) |
in libgomp's target.c : |
@tumagonx Looks like you found a bug in GCC. Has it been reported with GCC development yet? |
nah, I tired of reporting bug over windows compatibility (been there). and since I'm still on windows xp, it will getting worse. |
by the way, if we enable this plugin, does that means we no longer needs for cuda toolkit (nvcc, ptxas and friends), just need cuda runtime/driver? edit: nevermind, with cudart32_80.dll, cupti32_80.dll and cuinj32_80.dll not much can be done on xp except pure cuda development (no primitive library support) and its seems like neither gcc/llvm have their own ptx assembler, so they are nvcc replacement only. Not sure about nvptx-tools (need newlib so may not for windows too). |
FYI: I am able to build |
GCC10.3 latest version...
I need PTX offloading, and infact it's really enabled, but Im getting this error
libgomp: while loading libgomp-plugin-nvptx.so.1: "libgomp-plugin-nvptx.so.1": Module not found,
it compiles, but doesnt work.
Do I have to install CUDA or something ?
The text was updated successfully, but these errors were encountered: