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

[lang] Use less gpu memory when building sparse matrix #6781

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

FantasyVR
Copy link
Collaborator

Issue: #2906

Brief Summary

The read_int function of ndarray consumes more than 100M gpu memory. It's better to use memcpy_device_to_host function to obtain num_triplets_.

@netlify
Copy link

netlify bot commented Dec 1, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit c90fe04
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/63884997082e130009413429
😎 Deploy Preview https://deploy-preview-6781--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@FantasyVR FantasyVR requested a review from strongoier December 1, 2022 06:28
@FantasyVR FantasyVR merged commit dd70ce8 into taichi-dev:master Dec 2, 2022
@FantasyVR FantasyVR deleted the sm_less_mem branch December 22, 2022 04:01
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
Issue: taichi-dev#2906 

### Brief Summary
The `read_int` function of ndarray consumes more than 100M gpu memory.
It's better to use `memcpy_device_to_host` function to obtain
`num_triplets_`.
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