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

[llvm] Unify the llvm context of host and device #7249

Merged
merged 9 commits into from
Feb 1, 2023

Conversation

lin-hitonami
Copy link
Contributor

@lin-hitonami lin-hitonami commented Jan 29, 2023

Issue: fixes #7251
The llvm_context_host_ and llvm_context_device_ are never both used in the same backend, so we can unify them and only use a single llvm_context_.

Brief Summary

@netlify
Copy link

netlify bot commented Jan 29, 2023

Deploy Preview for docsite-preview canceled.

Name Link
🔨 Latest commit 2bdb82b
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/63d8d7488519f3000e14c220

Copy link
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

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

LGTM!

taichi/runtime/llvm/llvm_context.cpp Show resolved Hide resolved
@lin-hitonami lin-hitonami requested a review from ailzhang January 30, 2023 01:23
# Conflicts:
#	c_api/src/taichi_llvm_impl.cpp
#	taichi/runtime/llvm/llvm_aot_module_loader.cpp
#	taichi/runtime/llvm/llvm_runtime_executor.cpp
@lin-hitonami
Copy link
Contributor Author

/rerun

@lin-hitonami
Copy link
Contributor Author

/rebase

@taichi-gardener
Copy link
Contributor

Rebase failed, please resolve the conflicts manually.

@lin-hitonami lin-hitonami requested review from jim19930609, ailzhang and strongoier and removed request for strongoier, ailzhang and jim19930609 January 31, 2023 03:14
Copy link
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

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

Thanks!

@lin-hitonami lin-hitonami merged commit 2603e66 into taichi-dev:master Feb 1, 2023
@lin-hitonami lin-hitonami deleted the unify-context branch February 1, 2023 01:10
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
Issue: fixes taichi-dev#7251
The` llvm_context_host_` and `llvm_context_device_` are never both used
in the same backend, so we can unify them and only use a single
`llvm_context_`.
### Brief Summary
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.

Unify the llvm context of host and device
3 participants