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

fix(gpu): fix single gpu on device other than 0 #1880

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

agnesLeroy
Copy link
Contributor

closes: please link all relevant issues

PR content/description

Check-list:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • Relevant issues are marked as resolved/closed, related issues are linked in the description
  • Check for breaking changes (including serialization changes) and add them to commit message following the conventional commit specification

.unwrap();
let result_slice = result
.as_mut()
.d_blocks
.0
.d_vec
.as_slice(0..lwe_size * counter_num_blocks, streams.gpu_indexes[0].0)
.as_slice(0..lwe_size * counter_num_blocks, 0)
Copy link
Member

Choose a reason for hiding this comment

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

the second argument in as_slice it means to use the gpu that is in the index 0 of the array of available GPUs, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There was a confusion actually and this PR fixes it.

@agnesLeroy agnesLeroy merged commit 8687b69 into main Dec 17, 2024
156 of 163 checks passed
@agnesLeroy agnesLeroy deleted the al/fix_single_gpu_other_than_0 branch December 17, 2024 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants