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

Gathering GPU arrays to CPU before saving to .mat #228

Merged
merged 1 commit into from
Sep 3, 2020

Conversation

pbotros
Copy link
Contributor

@pbotros pbotros commented Sep 2, 2020

Without this, the GPU arrays (e.g. U and W) are saved as garbage in
the .mat file.

@marius10p ?

Without this, the GPU arrays (e.g. `U` and `W`) are saved as garbage in
the .mat file.
@marius10p
Copy link
Contributor

They load fine on computers with GPUs, but I agree it makes more sense to save them as CPU variables, thanks!

@marius10p marius10p merged commit bdf9366 into MouseLand:master Sep 3, 2020
@pbotros
Copy link
Contributor Author

pbotros commented Sep 3, 2020

Didn't know MATLAB handles that transparently; I've actually been introspecting the .mat's with Python, where the GPUArray doesn't load properly. Thanks for the merge!

cnuahs pushed a commit to cnuahs/Kilosort that referenced this pull request Mar 9, 2024
Gathering GPU arrays to CPU before saving to .mat

Former-commit-id: bdf9366
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.

2 participants