Comments (7)
@adayton1 in the config file, it looks like you're pulling in gcc4.9.3 stuff, which I do not think will work. Try switching to gcc8.3.1
Also, for clang14.0.5 on blueos, we have been building and testing RAJA with and without the --gcc-toolchain option and both seem to work.
from blt.
Can I see the full compile line? What C++ standard are you ending up with? The new gtest requires 14 but there is a check for that so I am confused how that could happen:
blt/thirdparty_builtin/CMakeLists.txt
Lines 8 to 14 in 4e1fa86
@rhornung67 that gcc4.9.3 is an exclude, it is removing that old version.
from blt.
@white238 yes, you are correct sir! My advanced age has affected my ability to read.... 😞
from blt.
Here's the full compile line:
/usr/tce/packages/cuda/cuda-11.7.0/bin/nvcc -forward-unknown-to-host-compiler -ccbin=/usr/tce/packages/clang/clang-ibm-14.0.5/bin/clang++ -DGTEST_HAS_DEATH_TEST=0 -isystem=/path/to/blt/thirdparty_builtin/googletest/googletest/include -isystem=/usr/tce/packages/cuda/cuda-11.7.0/include -O3 -DNDEBUG --generate-code=arch=compute_70,code=[compute_70,sm_70] -Xcompiler=-fPIE -std=c++14 -MD -MT blt/tests/smoke/CMakeFiles/blt_cuda_gtest_smoke.dir/blt_cuda_gtest_smoke.cpp.o -MF CMakeFiles/blt_cuda_gtest_smoke.dir/blt_cuda_gtest_smoke.cpp.o.d -x cu -rdc=true -c /path/to/blt/tests/smoke/blt_cuda_gtest_smoke.cpp -o CMakeFiles/blt_cuda_gtest_smoke.dir/blt_cuda_gtest_smoke.cpp.o
from blt.
@adayton1 -- I ran into this w/ axom here -- LLNL/axom#1120
GTest changed how they handle GTEST_HAS_DEATH_TESTS
-- they either want it defined (#ifdef
) or not (#ifndef
) rather than checking for the value to be 0 or 1. See: google/googletest@dc10c3b
Axom only had one file where that definition went wonky, so I hacked together an ugly fix: https://github.com/LLNL/axom/pull/1120/files#diff-f275c47d3d694fa090c7cccbb29de43d860accc5471d0c5247b4b2e78a7476b6
I also ran into oddities with the new GMock
in [email protected] and had to develop a workaround for the MATCHER_P
macro: https://github.com/LLNL/axom/pull/1120/files#diff-16066821799ab787292f81096d81bcb88840519839afb5afc392615a796a8a61
Edit: Updated an incorrect link
from blt.
Is there a way we can fix this in BLT without requiring every project to do some fixes like this?
from blt.
Add this to your host-config and it makes it go away:
set(CMAKE_CUDA_FLAGS "-Xcompiler=--gcc-toolchain=${GCC_HOME}" CACHE STRING "")
I will add an example in BLT's host-configs. The current example host-configs have gcc 8.3.1 built in and do not rely on the gcc-toolchain
flag on blueos.
from blt.
Related Issues (20)
- Internal test checking for c++1X but not c++2X
- Add new Quartz host-configs for gcc and clang
- blt_add_benchmark should take CONFIGURATIONS and OMP_NUM_THREADS arguments HOT 4
- Create tutorial for static analysis and friends
- Modify behavior of `blt_list_append` ?
- CMake Install Logic Checklist
- bug: setting ENABLE_CLANG_CUDA and BLT_CXX_STD=c++17 causes error
- Missing case in `blt_patch_target` and `blt_determine_scope`
- C test enabled without checking if C is an enabled language
- Compiler error with gcc+hip
- Override system include flag when necessary
- Add support for `fpreffity` fortran formatter
- `blt_check_code_compiles`: Work around `try_compile` not working with ALIAS targets
- google test finds python undermining ability to find python you want HOT 3
- Use of ALIAS target magic requires newish cmake
- blt cuda setup issue with newer cmake? HOT 7
- add target_compile_features option / plumbing to blt_add_library
- incrementally add sources + headers to lib using blt
- blt_add_yapf_target requires a SRC_FILES parameter HOT 4
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 blt.