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

libccl.so.1.0 size is so large #122

Open
hli25 opened this issue Jun 13, 2024 · 5 comments
Open

libccl.so.1.0 size is so large #122

hli25 opened this issue Jun 13, 2024 · 5 comments

Comments

@hli25
Copy link

hli25 commented Jun 13, 2024

Following the readme, I built out libccl.so.1.0 from master branch, but the lib is so big about 300M. While in oneAPI BaseKit, this lib is ~9M.
Any suggustion?

@hli25
Copy link
Author

hli25 commented Jun 21, 2024

btw, oneapi is 2024.0

@nikitaxgusev
Copy link
Contributor

@hli25 hello, can you post the build command to reproduce your issue, please?

@hli25
Copy link
Author

hli25 commented Jun 24, 2024

@hli25 hello, can you post the build command to reproduce your issue, please?
Thanks!
here are the commands:

  1. cmake .. -GNinja -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DCMAKE_CXX_FLAGS="-fsycl" -DCOMPUTE_BACKEND=dpcpp
  2. ninja
    Same issue when following INSTALL.md to build the lib.

btw, i reproduced it with commit b258db4

@nikitaxgusev
Copy link
Contributor

Hello @hli25 ,

my steps were:

git clone https://github.com/oneapi-src/oneCCL.git
mkdir build
cd ./build
cmake .. -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DCOMPUTE_BACKEND=dpcpp && make -j && make install
du -h ./_install/lib/libccl.so.1.0

So, what I see:

  • for 2021.12 branch: 17 Mb
    17M ./_install/lib/libccl.so.1.0

  • for 2021.13 branch: 48 Mb
    48M ./_install/lib/libccl.so.1.0

I couldn't reproduce your 300 Mb.

But I've noticed, you use -DCMAKE_CXX_FLAGS="-fsycl", is there any reason to do that?
cmake .. -GNinja -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DCMAKE_CXX_FLAGS="-fsycl" -DCOMPUTE_BACKEND=dpcpp
All the same, I had a chance to compile with your provided command and I couldn't reproduce the issue.

du -h ./_install/lib/libccl.so.1.0 with your command.
17M ./_install/lib/libccl.so.1.0

@hli25
Copy link
Author

hli25 commented Jun 27, 2024

hi @nikitaxgusev,
Thanks for your update!

Which oneapi did you use, 2024.0 or 2024.1 ?
With oneapi 2024.1, i could get similar resuls as yours. However, this is very differnet if you compile it via oneapi 2024.0.

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

2 participants