Comments (2)
As a clarification, the primary issue here is that when nvcc calls the c++ preprocessor for .cu files, arm_neon.h gets included and that brings along definitions of types that only the respective c++ compiler will understand. nvcc then calls cudafe++ on the resultant file and errors out. This is confusing and the output might lead folks to misunderstand where the error is originating from. Running nvcc with the --dryrun or --verbose flag will show all the individual steps being run in the background, and incrementally executing these steps allows one to see what's going on.
from abseil-cpp.
The above is probably overly broad (!defined(__NVCC__)
), and should be scoped to this (!(defined(__NVCC__) && defined(__CUDACC__))
) per https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html and https://llvm.org/docs/CompileCudaWithLLVM.html
diff --git a/absl/base/config.h b/absl/base/config.h
index 5fa9f0ef..503a77af 100644
--- a/absl/base/config.h
+++ b/absl/base/config.h
@@ -962,7 +962,7 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != 'h' ||
// https://llvm.org/docs/CompileCudaWithLLVM.html#detecting-clang-vs-nvcc-from-code
#ifdef ABSL_INTERNAL_HAVE_ARM_NEON
#error ABSL_INTERNAL_HAVE_ARM_NEON cannot be directly set
-#elif defined(__ARM_NEON) && !defined(__CUDA_ARCH__)
+#elif defined(__ARM_NEON) && !(defined(__NVCC__) && defined(__CUDACC__))
#define ABSL_INTERNAL_HAVE_ARM_NEON 1
#endif
from abseil-cpp.
Related Issues (20)
- [Bug]: Unusable for installable projects whose other dependencies also define a `check` target HOT 3
- Resolving linking order is a nightmare on alpine HOT 4
- mismatched types โabsl::lts_2020_09_23::FormatSpec<Args ...>โ and โconst char [34]โ HOT 1
- [Bug]: Compilation error on mac: xcode command line interface 15.3
- [Bug]: Make absl::InitializeLog safe to be called multiple times
- [Bug]: Cant compile app on windows with MinGW that use Absl::Flags target.
- [Bug]: Can't build on macOS: `'linux/futex.h' file not found`
- [Bug]: new flat_hash_map to empty string could cause memory corruption in c++20 HOT 7
- GCC 14: abseil-src/absl/numeric/internal/bits.h:309:24: error: '__builtin_ctzs' needs isa option -mbmi HOT 3
- [CMake]: Could not find a configuration file for package "absl" that is compatible with requested version ""
- [Bug]: clang-analyzer-optin.core.EnumCastOutOfRange for static_cast<ctrl_t>(0) HOT 2
- [Bug]: undefined reference to `absl::lts_20240116::raw_log_internal::internal_log_function[abi:cxx11]' HOT 1
- [Bug]: algorithm\container.h is missing random header and causing compilation error when building protobuf in VS2022 HOT 1
- [Bug]: ASAN use-after-poison in TimeZoneInfo HOT 3
- [Bug]: SEGV with btree_set::equal_range HOT 2
- [Bug]: build failure on redhat/ubi8
- [Bug]: Compilation error for filesystem HOT 1
- [Bug]: raw hash set test crash on centos7 HOT 1
- [Bug]: NegativeNaN test fails on riscv64 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abseil-cpp.