Giter VIP home page Giter VIP logo

Comments (7)

rhornung67 avatar rhornung67 commented on June 26, 2024

@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.

white238 avatar white238 commented on June 26, 2024

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:

if(ENABLE_GBENCHMARK OR ENABLE_GTEST OR ENABLE_GMOCK)
if("${CMAKE_CXX_STANDARD}" STREQUAL "" OR
"${CMAKE_CXX_STANDARD}" LESS 14)
message(WARNING "GoogleTest, GoogleMock, and GoogleBenchmark require C++14 or later. "
"Set BLT_CXX_STD to 'c++14' or higher before loading BLT.")
endif()
endif()

@rhornung67 that gcc4.9.3 is an exclude, it is removing that old version.

from blt.

rhornung67 avatar rhornung67 commented on June 26, 2024

@white238 yes, you are correct sir! My advanced age has affected my ability to read.... 😞

from blt.

adayton1 avatar adayton1 commented on June 26, 2024

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.

kennyweiss avatar kennyweiss commented on June 26, 2024

@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.

adayton1 avatar adayton1 commented on June 26, 2024

Is there a way we can fix this in BLT without requiring every project to do some fixes like this?

from blt.

white238 avatar white238 commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.