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

[Proto] Import CPU memory for Taichi AOT #8366

Closed
wants to merge 2 commits into from

Conversation

jim19930609
Copy link
Contributor

@jim19930609 jim19930609 commented Oct 11, 2023

Issue: #

Brief Summary

🤖 Generated by Copilot at 9d04fc2

Add a new C API function ti_import_cpu_memory to import CPU memory pointers into TiMemory objects. Implement the function in c_api/src/taichi_llvm_impl.cpp and add a test case in c_api/tests/c_api_interop_test.cpp.

Walkthrough

🤖 Generated by Copilot at 9d04fc2

  • Declare and implement a new C API function ti_import_cpu_memory to import a CPU memory pointer into a TiMemory object (link, link)
  • Include taichi/taichi_cpu.h in the test file c_api/tests/c_api_behavior_test.cpp to use the new function (link)
  • Add a new test case TestCPUImport to verify the functionality and interoperability of ti_import_cpu_memory with ti::NdArray (link)

@jim19930609 jim19930609 marked this pull request as draft October 11, 2023 03:52
@netlify
Copy link

netlify bot commented Oct 11, 2023

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit a4b8716
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/65261c2783ca7c0008688c31
😎 Deploy Preview https://deploy-preview-8366--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 configuration.

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.

1 participant