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

MueLu failing to compile on cuda-9 #2683

Closed
bathmatt opened this issue May 4, 2018 · 23 comments
Closed

MueLu failing to compile on cuda-9 #2683

bathmatt opened this issue May 4, 2018 · 23 comments
Labels
client: ATDM Any issue primarily impacting the ATDM project PA: Data Services Issues that fall under the Trilinos Data Services Product Area pkg: KokkosKernels pkg: MueLu type: bug The primary issue is a bug in Trilinos code or tests

Comments

@bathmatt
Copy link
Contributor

bathmatt commented May 4, 2018

Not sure how long it's been failing

muelu/src/Utils/ExplicitInstantiation/MueLu_Utilities_kokkos.cpp
/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Utils/MueLu_Utilities_kokkos_def.hpp(369): warning: calling a __host__ function("__builtin_cabs") from a __host__ __device__ function(" const") is not allowed

/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Utils/MueLu_Utilities_kokkos_def.hpp(387): warning: calling a __host__ function("__builtin_cabs") from a __host__ __device__ function(" const") is not allowed

/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Utils/MueLu_Utilities_kokkos_def.hpp(369): warning: calling a __host__ function("__builtin_cabs") from a __host__ __device__ function(" const") is not allowed

/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Utils/MueLu_Utilities_kokkos_def.hpp(387): warning: calling a __host__ function("__builtin_cabs") from a __host__ __device__ function(" const") is not allowed

/home/mbetten/Trilinos/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(385): error: calling a __host__ function("__builtin_cabs") from a __device__ function("Kokkos::Impl::ParallelFor< ::,  ::Kokkos::RangePolicy<int,  ::Kokkos::Cuda > ,  ::Kokkos::Cuda> ::operator () const") is not allowed

/home/mbetten/Trilinos/Trilinos/packages/kokkos/core/src/Cuda/Kokkos_Cuda_Parallel.hpp(385): error: calling a __host__ function("__builtin_cabs") from a __device__ function("Kokkos::Impl::ParallelFor< ::,  ::Kokkos::RangePolicy<int,  ::Kokkos::Cuda > ,  ::Kokkos::Cuda> ::operator () const") is not allowed

2 errors detected in the compilation of "/tmp/tmpxft_00008577_00000000-6_MueLu_Utilities_kokkos.cpp1.ii".
ninja: build stopped: subcommand failed.

@bartlettroscoe bartlettroscoe added type: bug The primary issue is a bug in Trilinos code or tests client: ATDM Any issue primarily impacting the ATDM project labels May 4, 2018
@bartlettroscoe
Copy link
Member

@trilinos/muelu

@bathmatt
Copy link
Contributor Author

bathmatt commented May 4, 2018

Looks like the issue is here

  static KOKKOS_FORCEINLINE_FUNCTION magnitudeType magnitude (const float x) {
    return abs (x);
  }

in kokkos_kernels. Is there some issue with include paths?
Here is the full link line

/projects/sems/install/rhel7-x86_64/sems/compiler/gcc/5.3.0/openmpi/1.10.1/bin/mpicxx   -I. -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Graph -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Graph/BrickAggregation -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Graph/StructuredAggregation -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Graph/StructuredAggregation/coupled -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Graph/StructuredAggregation/uncoupled -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Graph/UncoupledAggregation -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Graph/UserAggregation -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Headers -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Interface -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Interface/FacadeClasses -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Misc -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/MueCentral -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Rebalancing -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Smoothers -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Transfers/BaseClass -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Transfers/BlackBox -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Smoothers/BlockedSmoothers -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Transfers/BlockedTransfers -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Transfers/Energy-Minimization -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Transfers/Energy-Minimization/Solvers -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Transfers/GeneralGeometric -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Transfers/Generic -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Transfers/Geometric-Interpolation -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Transfers/Petrov-Galerkin-SA -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Transfers/SemiCoarsen -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Transfers/Smoothed-Aggregation -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Transfers/User -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Utils -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Utils/ForwardDeclaration -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/../adapters/xpetra -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/../adapters/tpetra -I/home/mbetten/Trilinos/Trilinos/packages/muelu/src/Transfers/PCoarsen -Ipackages/muelu/src -Ipackages/intrepid2/src -I/home/mbetten/Trilinos/Trilinos/packages/intrepid2/src/Cell -I/home/mbetten/Trilinos/Trilinos/packages/intrepid2/src/Discretization/Basis -I/home/mbetten/Trilinos/Trilinos/packages/intrepid2/src/Discretization/FunctionSpaceTools -I/home/mbetten/Trilinos/Trilinos/packages/intrepid2/src/Discretization/Integration -I/home/mbetten/Trilinos/Trilinos/packages/intrepid2/src/Orientation -I/home/mbetten/Trilinos/Trilinos/packages/intrepid2/src/Shared -I/home/mbetten/Trilinos/Trilinos/packages/intrepid2/src -Ipackages/shards/src -I/home/mbetten/Trilinos/Trilinos/packages/shards/src -Ipackages/sacado/src -I/home/mbetten/Trilinos/Trilinos/packages/sacado/src -I/home/mbetten/Trilinos/Trilinos/packages/sacado/src/new_design -I/home/mbetten/Trilinos/Trilinos/packages/sacado/src/template -I/home/mbetten/Trilinos/Trilinos/packages/sacado/src/parameter -I/home/mbetten/Trilinos/Trilinos/packages/sacado/src/mpl -Ipackages/teuchos/kokkoscomm/src -I/home/mbetten/Trilinos/Trilinos/packages/teuchos/kokkoscomm/src -Ipackages/teuchos/kokkoscompat/src -I/home/mbetten/Trilinos/Trilinos/packages/teuchos/kokkoscompat/src -I/home/mbetten/Trilinos/Trilinos/packages/teuchos/parameterlist/src -I/home/mbetten/Trilinos/Trilinos/packages/teuchos/parser/src -Ipackages/teuchos/core/src -I/home/mbetten/Trilinos/Trilinos/packages/teuchos/core/src -Ipackages/kokkos/core/src -I/home/mbetten/Trilinos/Trilinos/packages/kokkos/core/src -I/usr/local/cuda/include -I/projects/sems/install/rhel7-x86_64/sems/tpl/boost/1.59.0/gcc/5.3.0/base/include -I/home/mbetten/Trilinos/Trilinos/packages/teuchos/comm/src -I/home/mbetten/Trilinos/Trilinos/packages/teuchos/remainder/src -Ipackages/teuchos/remainder/src -I/home/mbetten/Trilinos/Trilinos/packages/teuchos/numerics/src -Ipackages/kokkos/algorithms/src -I/home/mbetten/Trilinos/Trilinos/packages/kokkos/algorithms/src -Ipackages/kokkos/containers/src -I/home/mbetten/Trilinos/Trilinos/packages/kokkos/containers/src -Ipackages/teko/src -I/home/mbetten/Trilinos/Trilinos/packages/teko/src -I/home/mbetten/Trilinos/Trilinos/packages/teko/src/NS -I/home/mbetten/Trilinos/Trilinos/packages/teko/src/Epetra -I/home/mbetten/Trilinos/Trilinos/packages/teko/src/Tpetra -Ipackages/stratimikos/src -I/home/mbetten/Trilinos/Trilinos/packages/stratimikos/src -I/home/mbetten/Trilinos/Trilinos/packages/stratimikos/adapters/belos/src -Ipackages/stratimikos/adapters/belos/src -I/home/mbetten/Trilinos/Trilinos/packages/stratimikos/adapters/amesos2/src -Ipackages/stratimikos/adapters/amesos2/src -I/home/mbetten/Trilinos/Trilinos/packages/stratimikos/adapters/aztecoo/src -I/home/mbetten/Trilinos/Trilinos/packages/stratimikos/adapters/amesos/src -I/home/mbetten/Trilinos/Trilinos/packages/stratimikos/adapters/ml/src -I/home/mbetten/Trilinos/Trilinos/packages/stratimikos/adapters/ifpack/src -I/home/mbetten/Trilinos/Trilinos -Ipackages/amesos2/src -I/home/mbetten/Trilinos/Trilinos/packages/amesos2/src -I/home/mbetten/Trilinos/Trilinos/packages/amesos2/src/KLU2/Include -I/home/mbetten/Trilinos/Trilinos/packages/amesos2/src/KLU2/Source -I/home/mbetten/Trilinos/Trilinos/packages/common/auxiliarySoftware/SuiteSparse/src/AMD/Include -I/home/mbetten/Trilinos/Trilinos/packages/common/auxiliarySoftware/SuiteSparse/src/COLAMD/Include -I/home/mbetten/Trilinos/Trilinos/packages/common/auxiliarySoftware/SuiteSparse/src/BTF/Include -I/home/mbetten/Trilinos/Trilinos/packages/common/auxiliarySoftware/SuiteSparse/src/UFconfig -Ipackages/epetraext/src -I/home/mbetten/Trilinos/Trilinos/packages/epetraext/src -I/home/mbetten/Trilinos/Trilinos/packages/epetraext/src/transform -I/home/mbetten/Trilinos/Trilinos/packages/epetraext/src/inout -I/home/mbetten/Trilinos/Trilinos/packages/epetraext/src/coloring -I/home/mbetten/Trilinos/Trilinos/packages/epetraext/src/model_evaluator -I/home/mbetten/Trilinos/Trilinos/packages/epetraext/src/block -I/home/mbetten/Trilinos/Trilinos/packages/epetraext/src/restrict -Ipackages/triutils/src -I/home/mbetten/Trilinos/Trilinos/packages/triutils/src -Ipackages/epetra/src -I/home/mbetten/Trilinos/Trilinos/packages/epetra/src -I/home/mbetten/Trilinos/Trilinos/packages/common/auxiliarySoftware/SuiteSparse/src/CAMD/Include -I/home/mbetten/Trilinos/Trilinos/packages/common/auxiliarySoftware/SuiteSparse/src/CCOLAMD/Include -I/home/mbetten/Trilinos/Trilinos/packages/common/auxiliarySoftware/SuiteSparse/src/KLU/Include -I/home/mbetten/Trilinos/Trilinos/packages/tpetra/core/ext -Ipackages/tpetra/core/ext -I/home/mbetten/Trilinos/Trilinos/packages/tpetra/core/inout -Ipackages/tpetra/core/inout -I/home/mbetten/Trilinos/Trilinos/packages/tpetra/core/src -I/home/mbetten/Trilinos/Trilinos/packages/tpetra/core/src/kokkos_refactor -Ipackages/tpetra/core/src -I/home/mbetten/Trilinos/Trilinos/packages/tpetra/classic/LinAlg -I/home/mbetten/Trilinos/Trilinos/packages/tpetra/classic/NodeAPI -Ipackages/tpetra/classic/NodeAPI -Ipackages/tpetra/classic/src -I/home/mbetten/Trilinos/Trilinos/packages/tpetra/classic/src -Ipackages/kokkos-kernels/src -I/home/mbetten/Trilinos/Trilinos/packages/kokkos-kernels/src -I/home/mbetten/Trilinos/Trilinos/packages/kokkos-kernels/src/impl -I/home/mbetten/Trilinos/Trilinos/packages/kokkos-kernels/src/impl/tpls -I/home/mbetten/Trilinos/Trilinos/packages/kokkos-kernels/src/blas -I/home/mbetten/Trilinos/Trilinos/packages/kokkos-kernels/src/blas/impl -I/home/mbetten/Trilinos/Trilinos/packages/kokkos-kernels/src/sparse -I/home/mbetten/Trilinos/Trilinos/packages/kokkos-kernels/src/sparse/impl -I/home/mbetten/Trilinos/Trilinos/packages/kokkos-kernels/src/graph -I/home/mbetten/Trilinos/Trilinos/packages/kokkos-kernels/src/graph/impl -I/home/mbetten/Trilinos/Trilinos/packages/kokkos-kernels/src/batched -I/home/mbetten/Trilinos/Trilinos/packages/kokkos-kernels/src/batched/impl -I/home/mbetten/Trilinos/Trilinos/packages/kokkos-kernels/src/common -Ipackages/belos/tpetra/src -I/home/mbetten/Trilinos/Trilinos/packages/belos/tpetra/src -Ipackages/belos/epetra/src -I/home/mbetten/Trilinos/Trilinos/packages/belos/epetra/src -Ipackages/belos/src -I/home/mbetten/Trilinos/Trilinos/packages/belos/src -Ipackages/aztecoo/src -I/home/mbetten/Trilinos/Trilinos/packages/aztecoo/src -I/home/mbetten/Trilinos/Trilinos/packages/thyra/adapters/tpetra/src -I/home/mbetten/Trilinos/Trilinos/packages/thyra/adapters/epetra/src -I/home/mbetten/Trilinos/Trilinos/packages/thyra/core/src -I/home/mbetten/Trilinos/Trilinos/packages/thyra/core/src/interfaces/operator_vector/fundamental -I/home/mbetten/Trilinos/Trilinos/packages/thyra/core/src/interfaces/operator_vector/extended -I/home/mbetten/Trilinos/Trilinos/packages/thyra/core/src/support/operator_vector/client_support -I/home/mbetten/Trilinos/Trilinos/packages/thyra/core/src/support/operator_vector/adapter_support -I/home/mbetten/Trilinos/Trilinos/packages/thyra/core/src/interfaces/operator_solve/fundamental -I/home/mbetten/Trilinos/Trilinos/packages/thyra/core/src/interfaces/operator_solve/extended -I/home/mbetten/Trilinos/Trilinos/packages/thyra/core/src/support/operator_solve/client_support -I/home/mbetten/Trilinos/Trilinos/packages/thyra/core/src/interfaces/nonlinear/model_evaluator/fundamental -I/home/mbetten/Trilinos/Trilinos/packages/thyra/core/src/support/nonlinear/model_evaluator/client_support -I/home/mbetten/Trilinos/Trilinos/packages/thyra/core/src/interfaces/nonlinear/solvers/fundamental -I/home/mbetten/Trilinos/Trilinos/packages/thyra/core/src/support/nonlinear/solvers/client_support -Ipackages/thyra/core/src -I/home/mbetten/Trilinos/Trilinos/packages/thyra/core/example/operator_vector -I/home/mbetten/Trilinos/Trilinos/packages/rtop/src -I/home/mbetten/Trilinos/Trilinos/packages/rtop/src/interfaces -I/home/mbetten/Trilinos/Trilinos/packages/rtop/src/support -I/home/mbetten/Trilinos/Trilinos/packages/rtop/src/ops_lib -I/home/mbetten/Trilinos/Trilinos/packages/rtop/src/lapack -Ipackages/rtop/src -I/home/mbetten/Trilinos/Trilinos/packages/thyra/adapters/epetraext/src/model_evaluator -I/home/mbetten/Trilinos/Trilinos/packages/thyra/adapters/epetraext/src/transformer -Ipackages/ml/src -I/home/mbetten/Trilinos/Trilinos/packages/ml/src/Include -I/home/mbetten/Trilinos/Trilinos/packages/ml/src/Comm -I/home/mbetten/Trilinos/Trilinos/packages/ml/src/Coarsen -I/home/mbetten/Trilinos/Trilinos/packages/ml/src/FEGrid -I/home/mbetten/Trilinos/Trilinos/packages/ml/src/Main -I/home/mbetten/Trilinos/Trilinos/packages/ml/src/Smoother -I/home/mbetten/Trilinos/Trilinos/packages/ml/src/Krylov -I/home/mbetten/Trilinos/Trilinos/packages/ml/src/Operator -I/home/mbetten/Trilinos/Trilinos/packages/ml/src/Utils -I/home/mbetten/Trilinos/Trilinos/packages/ml/src/RefMaxwell -I/home/mbetten/Trilinos/Trilinos/packages/ml/src/MatrixFree -I/home/mbetten/Trilinos/Trilinos/packages/ml/src/MLAPI -I/home/mbetten/Trilinos/Trilinos/packages/ml/src/LevelWrap -Ipackages/ifpack/src -I/home/mbetten/Trilinos/Trilinos/packages/ifpack/src -I/home/mbetten/Trilinos/Trilinos/common/auxiliarySoftware/SuiteSparse/src/AMD/Include -I/home/mbetten/Trilinos/Trilinos/common/auxiliarySoftware/SuiteSparse/src/UFconfig -Ipackages/amesos/src -I/home/mbetten/Trilinos/Trilinos/packages/amesos/src -I/home/mbetten/Trilinos/Trilinos/packages/amesos/src/SuiteSparse/AMD/Include -I/home/mbetten/Trilinos/Trilinos/packages/amesos/src/SuiteSparse/COLAMD/Include -I/home/mbetten/Trilinos/Trilinos/packages/amesos/src/SuiteSparse/UFconfig -I/home/mbetten/Trilinos/Trilinos/packages/amesos/src/SuiteSparse/KLU/Include -I/home/mbetten/Trilinos/Trilinos/packages/amesos/src/SuiteSparse/BTF/Include -I/hom

@jhux2
Copy link
Member

jhux2 commented May 4, 2018

@bathmatt The nightly CUDA 8 MueLu builds are ok. I will see if I can reproduce under CUDA 9.

@jhux2
Copy link
Member

jhux2 commented May 4, 2018

@trilinos/kokkos-kernels @srajama1

@crtrott
Copy link
Member

crtrott commented May 4, 2018

This is most likely an issue of including both "math.h" and which will screw stuff up in ways dependent on include order. This is outside of KokkosKernels control unfortunately. Solution: NEVER EVER EVER include math.h in C++ files. Because math.h is C.

@bathmatt
Copy link
Contributor Author

bathmatt commented May 4, 2018

There's 167 of math.h in all sorts of c++ file files. List is included

math_h.txt

Here are ones in kokkos directories...

./packages/kokkos-kernels/example/fenl/fenl_impl.hpp
./packages/kokkos-kernels/example/fenl/main.cpp
./packages/kokkos-kernels/unit_test/common/Test_Common_float128.hpp
./packages/kokkos-kernels/src/Kokkos_ArithTraits.hpp
./packages/stokhos/src/sacado/kokkos/vector/Sacado_MP_Vector_ops.hpp
./packages/stokhos/src/sacado/kokkos/vector/Sacado_MP_Vector_SFS_ops.hpp
./packages/kokkos/core/src/Kokkos_ROCm.hpp
./kokkos/core/src/Kokkos_ROCm.hpp

@bathmatt
Copy link
Contributor Author

bathmatt commented May 4, 2018

should I sed script all of them away in one big push?

@bathmatt
Copy link
Contributor Author

bathmatt commented May 4, 2018

So, looking a bit deeper, lots of those are amp_math.h and quadmath.h. Are those o.k.?

@bathmatt
Copy link
Contributor Author

bathmatt commented May 4, 2018

math_h.txt

this is just <math.h> files. 110 files but only kokkos-kernels examples are there

@srajama1
Copy link
Contributor

srajama1 commented May 4, 2018

Looking at the list most are in examples or tests. For your use case can it be belos/src/* ?

@bathmatt
Copy link
Contributor Author

bathmatt commented May 4, 2018

For me, the issue is that I can't compile trilinos with cuda 9 and muelu kokkos flags set. It reports errors in muelu which look like they are in kokkos-kernels. The rest doesn't matter to me but is a means to an end.

@jhux2
Copy link
Member

jhux2 commented May 4, 2018

@bathmatt I had no luck reproducing the problem on waterman with the CUDA 9 modules loaded -- trilinos built without error with the script EMPIRE/scripts/configure.sh.

On the CEE lan, I module loaded SPARC's CUDA 9 environment:

module load sparc-dev/cuda-9.0.176_gcc-4.9.3_openmpi-1.10.2
module load sems-yaml_cpp/0.5.3/base
module load kokkos-hwloc/1.10.1/base

Trilinos compilation fails in Kokkos:

/scratch/jhu/Trilinos/packages/kokkos/core/src/impl/Kokkos_Error.hpp(76): error: namespace "Kokkos::Impl" has no member "cuda_abort"

@ndellingwood
Copy link
Contributor

@jhux2 one thing to try for the CEE lan issue is to try checking that nvcc_wrapper is set as the compiler (echo $OMPI_CXX); if it is set but out-of-date, try resetting the OMPI_CXX path to TRILINOS_PATH/packages/kokkos/bin/nvcc_wrapper. Not sure if this will help but something to check.

@jhux2
Copy link
Member

jhux2 commented May 4, 2018

@ndellingwood Thanks for the tip. The variable was indeed set incorrectly, but even pointing to nvcc_wrapper in Kokkos, the compile still fails in the same way.

Do you know if there another platform where CUDA 9 is available that I can try building on?

@nmhamster
Copy link
Contributor

@jhux2 - CUDA9 is available on Hansen and Shiller as well as the POWER machines.

@bartlettroscoe
Copy link
Member

This is most likely an issue of including both "math.h" and which will screw stuff up in ways dependent on include order. This is outside of KokkosKernels control unfortunately. Solution: NEVER EVER EVER include math.h in C++ files. Because math.h is C.

Yea, that has been official Trilinos policy for at least 12+ years. If you go to:

there is a link to:

and there is the policy:

Only include the C++ version of standard C headers <cX> and never the C version <X.h>. For example, only include <cstdlib> in C++ code and never include <stdlib.h>. Significant portability problems occur on some platforms when you mix the standard C++ and the standard C versions of the same headers; don't do it!

@trilinos/framework team. Could we consider adding some simple static analysis checks to the auto PR testing for things like this? Other projects do that (e.g. INL MOOSE). Otherwise, how do we educate Trilinos developers about policies like this? Is there not a checklist for this stuff?

@jhux2
Copy link
Member

jhux2 commented May 4, 2018

CUDA9 is available on Hansen and Shiller as well as the POWER machines.

Can't reproduce on Shiller either. I may not have the correct Trilinos configure script.

@bathmatt
Copy link
Contributor Author

bathmatt commented May 8, 2018

Is cuda9 on shiller? It works in 8
@bartlettroscoe do we have a platform in your scripts that uses cuda 9? If we can work through this with the new workflow that'd be great.
M

@bartlettroscoe
Copy link
Member

@bartlettroscoe do we have a platform in your scripts that uses cuda 9? If we can work through this with the new workflow that'd be great.

@bathmatt, there are no CUDA9 builds for the ATDM Trilinos builds yet. We have been focusing on duplicating all of the EMPIRE Trilinos builds running on jenkins-srn and we did not see any CUDA 9 builds there.

We can add a CUDA 9.0 build on shiller/hansen. The only issue is that then we need to extend the keyword parsing to not just look for cuda but instead we will have to look for cuda9.0, etc. I will write a Trilinos GitHub issue for adding support for the cuda9.0 (and cuda9.1 etc.) in the build name and getting an CUDA 9.0 build running on shiller/hansen.

@bathmatt
Copy link
Contributor Author

bathmatt commented May 8, 2018

I have a cuda9 build on shiller going, if it fails I'll send the mods to Ross's procedure to get it going.

@bathmatt
Copy link
Contributor Author

bathmatt commented May 8, 2018

This seems to be only tickled by my system configuration and not on shiller. I think we can close this, but first @bartlettroscoe can you confirm that this should work with the scripts? Basically, swap out the cuda 9 modules after one sets the env. Seemed to do the right thing. IF there is no obvious error thre I will look at reopening once I can reproduce on a different public system


 1011  source ../cmake/std/atdm/load-env.sh cuda-opt
 1013  module purge
 1014  module load cmake/3.9.0 ninja/1.7.2 devpack/openmpi/2.1.1/gcc/4.9.3/cuda/9.0.176 
 1033  cmake -DTrilinos_CONFIGURE_OPTIONS_FILE:STRING=cmake/std/atdm/ATDMDevEnv.cmake   -DTrilinos_ENABLE_TESTS=ON -DTrilinos_ENABLE_Panzer=ON -D MueLu_ENABLE_Kokkos_Refactor:BOOL=ON -D Xpetra_ENABLE_Kokkos_Refactor:BOOL=ON -D MueLu_ENABLE_Kokkos_Refactor_Use_By_Default:BOOL=ON  ..

 1034  make -j33

@bartlettroscoe
Copy link
Member

I think we can close this, but first @bartlettroscoe can you confirm that this should work with the scripts? Basically, swap out the cuda 9 modules after one sets the env. Seemed to do the right thing.

@bathmatt, basically, this is just replacing the the compilers, etc. This should work.

Should we go ahead and add a cuda9.0 keyword for shiller and set a CUDA 9.0 build there?

@bathmatt
Copy link
Contributor Author

bathmatt commented May 9, 2018

I think we can close this until I nail down exactly what is diffrent on my system causing this.

@bathmatt bathmatt closed this as completed May 9, 2018
@bartlettroscoe bartlettroscoe added the PA: Data Services Issues that fall under the Trilinos Data Services Product Area label Nov 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client: ATDM Any issue primarily impacting the ATDM project PA: Data Services Issues that fall under the Trilinos Data Services Product Area pkg: KokkosKernels pkg: MueLu type: bug The primary issue is a bug in Trilinos code or tests
Projects
None yet
Development

No branches or pull requests

7 participants