Do not include arm_neon.h when running under nvcc #1028
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm having trouble building llama.cpp with ARM and CUDA. The reason seems to be that the build process ends up trying to compile something with
nvcc
which includes thearm_neon.h
header which uses a bunch of NEON intrinsics thatnvcc
doesn't know about.See here: https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=1090459&view=logs&jobId=d93976e3-6ed1-588b-ebf8-e8a19c2becc4&j=d93976e3-6ed1-588b-ebf8-e8a19c2becc4&t=9243320e-a173-5427-7ff1-0cd57d39b91c
Following abseil/abseil-cpp#1665 I've changed the code to conditionally include the header.