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

[LightGBM] build v4.3.0 with OpenCL/CUDA support #8593

Merged
merged 9 commits into from
Jun 13, 2024

Conversation

characat0
Copy link
Contributor

No description provided.

@ViralBShah
Copy link
Contributor

@giordano ok to merge?

@giordano
Copy link
Member

I quickly skimmed through it and it looks ok, but is there an upstream issue to switch to FindCUDAToolkit? The deprecated FindCUDA module recently caused me lots of wasted time, it should really not be used.

@characat0
Copy link
Contributor Author

I will make a patch here and make an issue upstream

@characat0
Copy link
Contributor Author

can we check #8691?
I think is the reason build are failing

@characat0
Copy link
Contributor Author

@giordano what do you think now?

L/LightGBM/build_tarballs.jl Show resolved Hide resolved
L/LightGBM/build_tarballs.jl Outdated Show resolved Hide resolved
L/LightGBM/bundled/patches/lightgbm-cmake-find-cuda.patch Outdated Show resolved Hide resolved
@characat0
Copy link
Contributor Author

Are we ok to merge @giordano ?

export CUDA_PATH=${WORKSPACE}/destdir/cuda
export PATH=$PATH:$CUDA_PATH/bin/

ln -s $CUDA_PATH/lib $CUDA_PATH/lib64
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this leaves a broken symlink in the final tarballs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, I did that so cmake could find the libs, I'll check a better approach

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found that the issue was in the enable_language(CUDA) call, it was not using the library path provided, so I'm forcing it now with CMAKE_CUDA_FLAGS, is this a good approach?

@ViralBShah ViralBShah marked this pull request as draft May 31, 2024 22:16
@characat0 characat0 marked this pull request as ready for review June 11, 2024 03:01
@characat0 characat0 requested a review from giordano June 11, 2024 16:39
@giordano giordano enabled auto-merge (squash) June 13, 2024 17:16
@giordano giordano merged commit 5a0a661 into JuliaPackaging:master Jun 13, 2024
30 checks passed
amontoison pushed a commit that referenced this pull request Jun 22, 2024
* build LightGBM v4.3.0 with OpenCL/CUDA support

* fix: replace FindCuda with FindCUDAToolkit

* 😶 oops

* patch switch to findcudatoolkit

* boost pin compat

* Update build_tarballs.jl

* fix: add libs to CMAKE_CUDA_FLAGS

* Update L/LightGBM/build_tarballs.jl

---------

Co-authored-by: Mosè Giordano <giordano@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

None yet

4 participants