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

[python] Windows wheels that support GPUs via OpenCL #3403

Merged
merged 70 commits into from
Dec 19, 2020

Conversation

itamarst
Copy link
Contributor

This is a follow-up to #3144, to actually use the new infrastructure to build Python wheels that can work both with and without GPUs.

tpboudreau and others added 28 commits June 1, 2020 14:41
Copy link
Collaborator

@StrikerRUS StrikerRUS left a comment

Choose a reason for hiding this comment

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

Awesome contribution! Thanks a lot guys! Hope that ability to set default device to gpu will come soon.

I'll update docs to notify users about this useful feature that will allow them to simplify GPU version installation later today and will ping you to review if you don't mind.

# Install OpenCL platform from installer executable expected in workspace cache

Write-Output "Running OpenCL installer"
Invoke-Command -ScriptBlock {Start-Process "$cache\$installer" -ArgumentList '/S /V"/quiet /norestart /passive /log opencl.log"' -Wait}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just a question. What does this syntax mean? /V" ... opencl.log". I mean double quotes.

Copy link
Contributor

Choose a reason for hiding this comment

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

The installer package has a program inside a program: the outer (extractor) program takes the /S and /V arguments. The value of the /V argument is the list of arguments you want passed to the inner (installer) program. You need to quote them to make sure they're all passed together, not interpreted as (unrecognized) arguments to the outer program. Since the ArgumentList is already single-quoted, you have to use double-quotes for the interior quotes.

@StrikerRUS StrikerRUS merged commit 222a736 into microsoft:master Dec 19, 2020
@tpboudreau
Copy link
Contributor

I'll update docs to notify users about this useful feature that will allow them to simplify GPU version installation later today and will ping you to review if you don't mind.

No problem. Thanks for all your contributions to this PR.

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants