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] Add missing pre-processor macro when LLVM is disabled #3702

Merged
merged 1 commit into from
Dec 4, 2021
Merged

[LLVM] Add missing pre-processor macro when LLVM is disabled #3702

merged 1 commit into from
Dec 4, 2021

Conversation

ghuau-innopeak
Copy link
Collaborator

Some components were still referencing LLVM with TI_WITH_LLVM set to
false triggering a build failure.

Related issue = #3679

@netlify
Copy link

netlify bot commented Dec 3, 2021

✔️ Deploy Preview for jovial-fermat-aa59dc canceled.

🔨 Explore the source changes: 70d765b

🔍 Inspect the deploy log: https://app.netlify.com/sites/jovial-fermat-aa59dc/deploys/61aad5662b22b40007606319

Copy link
Collaborator

@AmesingFlank AmesingFlank left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@ghuau-innopeak
Copy link
Collaborator Author

@AmesingFlank Thanks to your feedback, I just pushed the changes related to the other PR I closed to this one as they are all related to LLVM.

if (dynamic_cast<vulkan::VulkanDevice *>(dst.device) &&
dynamic_cast<cpu::CpuDevice *>(src.device)) {
// TODO: support direct copy if dst itself supports host write.
return Device::MemcpyCapability::RequiresStagingBuffer;
}
#if TI_WITH_CUDA
#elif TI_WITH_CUDA
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
#elif TI_WITH_CUDA
#if TI_WITH_CUDA

Copy link
Collaborator

Choose a reason for hiding this comment

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

this is the reason the tests are failing.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That makes sense, not sure why I used a #elif, I missed this use case in my testing

Some components were still referencing LLVM with TI_WITH_LLVM set to
false triggering a build failure.
@AmesingFlank AmesingFlank merged commit cc74e13 into taichi-dev:master Dec 4, 2021
@ghuau-innopeak ghuau-innopeak deleted the ghuau/fix_llvm_macros branch December 14, 2021 16:43
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