Skip to content
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

Missing SYCL functions in final linking stage of rxmd build #52

Closed
TaufeqRazakh opened this issue Oct 19, 2023 · 1 comment
Closed

Missing SYCL functions in final linking stage of rxmd build #52

TaufeqRazakh opened this issue Oct 19, 2023 · 1 comment

Comments

@TaufeqRazakh
Copy link
Member

For PR #51 when building with the following command

cmake -DCMAKE_CXX_COMPILER=icpx -DTorch_DIR=/soft/datascience/aurora_models_frameworks-2023.2/lib/python3.9/site-packages/torch/share/cmake/Torch/ -DIPEX_DIR=/soft/datascience/aurora_models_frameworks-2023.2/lib/python3.9/site-packages/intel_extension_for_pytorch/share/cmake/IPEX/ -DCMAKE_Fortran_COMPILER=mpif90 -DRXMD_ENABLE_TORCH=ON -DRXMD_ENABLE_IPEX=ON ..

An issue arises in final stage of linking:

Scanning dependencies of target rxmd
[ 96%] Building Fortran object src/CMakeFiles/rxmd.dir/main.F90.o
[100%] Linking CXX executable rxmd
/usr/bin/ld: /usr/lib/../lib64/crt1.o: in function `_start':
/home/abuild/rpmbuild/BUILD/glibc-2.31/csu/../sysdeps/x86_64/start.S:104: undefined reference to `main'
/usr/bin/ld: /soft/datascience/aurora_models_frameworks-2023.2/lib/python3.9/site-packages/intel_extension_for_pytorch/lib/libintel-ext-pt-gpu.so: undefined reference to `sycl::_V1::detail::tls_code_loc_t::~tls_code_loc_t()'
/usr/bin/ld: /soft/datascience/aurora_models_frameworks-2023.2/lib/python3.9/site-packages/intel_extension_for_pytorch/lib/libintel-ext-pt-gpu.so: undefined reference to `sycl::_V1::detail::AccessorBaseHost::AccessorBaseHost(sycl::_V1::id<3>, sycl::_V1::range<3>, sycl::_V1::range<3>, sycl::_V1::access::mode, void*, int, int, bool, int, bool, sycl::_V1::property_list const&)'
/usr/bin/ld: /soft/datascience/aurora_models_frameworks-2023.2/lib/python3.9/site-packages/intel_extension_for_pytorch/lib/libintel-ext-pt-gpu.so: undefined reference to `sycl::_V1::detail::tls_code_loc_t::tls_code_loc_t(sycl::_V1::detail::code_location const&)'
/usr/bin/ld: /soft/datascience/aurora_models_frameworks-2023.2/lib/python3.9/site-packages/intel_extension_for_pytorch/lib/libintel-ext-pt-gpu.so: undefined reference to `sycl::_V1::detail::AccessorBaseHost::isPlaceholder() const'
/usr/bin/ld: /soft/datascience/aurora_models_frameworks-2023.2/lib/python3.9/site-packages/intel_extension_for_pytorch/lib/libintel-ext-pt-gpu.so: undefined reference to `sycl::_V1::queue::queue(sycl::_V1::context const&, sycl::_V1::device const&, sycl::_V1::property_list const&, sycl::_V1::queue::Discriminator)'
/usr/bin/ld: /soft/datascience/aurora_models_frameworks-2023.2/lib/python3.9/site-packages/intel_extension_for_pytorch/lib/libintel-ext-pt-gpu.so: undefined reference to `sycl::_V1::queue::queue(sycl::_V1::context const&, sycl::_V1::device const&, std::function<void (sycl::_V1::exception_list)> const&, sycl::_V1::property_list const&, sycl::_V1::queue::Discriminator)'
icpx: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/CMakeFiles/rxmd.dir/build.make:109: src/rxmd] Error 1
make[1]: *** [CMakeFiles/Makefile2:137: src/CMakeFiles/rxmd.dir/all] Error 2
make: *** [Makefile:103: all] Error 2

I have tried adding SYCL link directories to both rxmd and torch_rxmd targets separately, but the issue still prevails.

@TaufeqRazakh TaufeqRazakh changed the title Missing SYCL functins in final linking stage of linking Missing SYCL functins in final linking stage of rxmd build Oct 19, 2023
@TaufeqRazakh TaufeqRazakh changed the title Missing SYCL functins in final linking stage of rxmd build Missing SYCL functions in final linking stage of rxmd build Oct 19, 2023
@TaufeqRazakh
Copy link
Member Author

closed with #51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant