You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sacado w/ ROCm 5.4.3: pce/Sacado_UQ_PCE_Imp.hpp:661:3: error: reference to __host__ function 'TestForException_incrThrowNumber' in __host__ __device__ function
#12365
Open
eugeneswalker opened this issue
Oct 4, 2023
· 1 comment
ROCm 5.4.3, installed via apt, registered as external with Spack
GCC 11.4.0
Ubuntu 20.04, X86_64
$> spack dev-build -j48 trilinos@master +testing +rocm amdgpu_target=gfx90a +amesos +amesos2 +anasazi +aztec +belos +boost +epetra +epetraext +ifpack +ifpack2 +intrepid +intrepid2 +isorropia +kokkos +ml +minitensor +muelu +nox +piro +phalanx +rol +rythmos +sacado +stk +shards +shylu +stokhos +stratimikos +teko +tempus +tpetra +trilinoscouplings +zoltan +zoltan2 +superlu-dist gotype=long_long ^superlu-dist
...
In file included from /e4s-develop/collab/trilinos/ctest-rocm/Trilinos/packages/trilinoscouplings/examples/fenl/main_pce.cpp:3:
In file included from /e4s-develop/collab/trilinos/ctest-rocm/Trilinos/packages/stokhos/src/sacado/kokkos/pce/Stokhos_Sacado_Kokkos_UQ_PCE.hpp:61:
In file included from /e4s-develop/collab/trilinos/ctest-rocm/Trilinos/packages/stokhos/src/sacado/kokkos/pce/Kokkos_View_UQ_PCE.hpp:63:
In file included from /e4s-develop/collab/trilinos/ctest-rocm/Trilinos/packages/stokhos/src/sacado/kokkos/pce/KokkosExp_View_UQ_PCE_Contiguous.hpp:185:
In file included from /e4s-develop/collab/trilinos/ctest-rocm/Trilinos/packages/stokhos/src/sacado/kokkos/pce/Sacado_UQ_PCE.hpp:1313:
/e4s-develop/collab/trilinos/ctest-rocm/Trilinos/packages/stokhos/src/sacado/kokkos/pce/Sacado_UQ_PCE_Imp.hpp:661:3: error: reference to __host__ function 'TestForException_incrThrowNumber' in __host__ __device__ function
TEUCHOS_TEST_FOR_EXCEPTION(
...
Thanks for reporting. The issue is this code is ifdef'd out for CUDA but not HIP. I don't know how much of Stokhos compiles on HIP, so this could take a while to fix.
eugeneswalker
changed the title
Sacado: pce/Sacado_UQ_PCE_Imp.hpp:661:3: error: reference to __host__ function 'TestForException_incrThrowNumber' in __host__ __device__ function
Sacado w/ ROCm 5.4.3: pce/Sacado_UQ_PCE_Imp.hpp:661:3: error: reference to __host__ function 'TestForException_incrThrowNumber' in __host__ __device__ function
Oct 7, 2023
Bug Report
@etphipp @nchaimov
Description
Building
trilinos@master +testing +rocm amdgpu_target=gfx90a +amesos +amesos2 +anasazi +aztec +belos +boost +epetra +epetraext +ifpack +ifpack2 +intrepid +intrepid2 +isorropia +kokkos +ml +minitensor +muelu +nox +piro +phalanx +rol +rythmos +sacado +stk +shards +shylu +stokhos +stratimikos +teko +tempus +tpetra +trilinoscouplings +zoltan +zoltan2 +superlu-dist gotype=long_long
fails using:Steps to Reproduce
Reproducible here using Docker container image:
ecpe4s/ubuntu20.04-runner-amd64-gcc-11.4-rocm5.4.3-mpi-base:2023.08.20
Spack environment: spack.yaml.txt
Concretization
- esiwctn trilinos@master%[email protected]~adelus~adios2+amesos+amesos2+anasazi+aztec~basker+belos+boost~chaco~complex~cuda~cuda_rdc~debug~dtk+epetra+epetraext~epetraextbtf~epetraextexperimental~epetraextgraphreorderings~exodus+explicit_template_instantiation~float+fortran~gtest~hdf5~hypre+ifpack+ifpack2+intrepid+intrepid2~ipo+isorropia+kokkos~mesquite+minitensor+ml+mpi+muelu~mumps+nox~openmp~panzer+phalanx+piro~python+rocm~rocm_rdc+rol+rythmos+sacado~scorec+shards+shared+shylu+stk+stokhos+stratimikos~strumpack~suite-sparse~superlu+superlu-dist+teko+tempus+testing+thyra+tpetra+trilinoscouplings~wrapper~x11+zoltan+zoltan2 amdgpu_target=gfx90a build_system=cmake build_type=Release cxxstd=17 generator=make gotype=long_long arch=linux-ubuntu20.04-x86_64 [+] ia5ufsp ^[email protected]%[email protected]~atomic~chrono~clanglibcpp~container~context~contract~coroutine~date_time~debug+exception~fiber~filesystem+graph~graph_parallel~icu~iostreams~json~locale~log+math+mpi+multithreaded~nowide~numpy~pic~program_options~python~random~regex~serialization+shared~signals~singlethreaded+stacktrace~system~taggedlayout~test~thread~timer~type_erasure~versionedlayout~wave build_system=generic cxxstd=17 patches=a440f96 visibility=hidden arch=linux-ubuntu20.04-x86_64 [+] j56nveb ^[email protected]%[email protected]~doc+ncurses+ownlibs build_system=generic build_type=Release arch=linux-ubuntu20.04-x86_64 [+] krhswgy ^[email protected]%[email protected]~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs=shared,static tls=openssl arch=linux-ubuntu20.04-x86_64 [+] y72nyuk ^[email protected]%[email protected] build_system=autotools arch=linux-ubuntu20.04-x86_64 [+] m2nqw34 ^[email protected]%[email protected]~docs+shared build_system=generic certs=mozilla arch=linux-ubuntu20.04-x86_64 [+] thgudgh ^ca-certificates-mozilla@2023-05-30%[email protected] build_system=generic arch=linux-ubuntu20.04-x86_64 [+] 4ahtcrh ^[email protected]%[email protected]~symlinks+termlib abi=none build_system=autotools arch=linux-ubuntu20.04-x86_64 [+] axbtmvn ^[email protected]%[email protected]~guile build_system=autotools arch=linux-ubuntu20.04-x86_64 [e] m4alb4r ^[email protected]%[email protected]~cuda+rocm build_system=cmake build_type=Release generator=make patches=5068750,c2ee21c,ca523f1,ddd86f0 arch=linux-ubuntu20.04-x86_64 [e] gwdu4x7 ^[email protected]%[email protected]+image+shared build_system=cmake build_type=Release generator=make patches=71e6851 arch=linux-ubuntu20.04-x86_64 [+] ytgmnmi ^[email protected]%[email protected]~cairo~cuda~gl~libudev+libxml2~netloc~nvml~oneapi-level-zero~opencl+pci~rocm build_system=autotools libs=shared,static arch=linux-ubuntu20.04-x86_64 [+] wjzjxgg ^[email protected]%[email protected] build_system=autotools arch=linux-ubuntu20.04-x86_64 [+] 3cmrrml ^[email protected]%[email protected] build_system=autotools arch=linux-ubuntu20.04-x86_64 [+] dije4dh ^[email protected]%[email protected]+sigsegv build_system=autotools patches=9dc5fbd,bfdffa7 arch=linux-ubuntu20.04-x86_64 [+] uxiki2z ^[email protected]%[email protected] build_system=autotools arch=linux-ubuntu20.04-x86_64 [+] pv4s6pa ^[email protected]%[email protected] build_system=autotools arch=linux-ubuntu20.04-x86_64 [+] w3n2rgb ^[email protected]%[email protected]+pic~python+shared build_system=autotools arch=linux-ubuntu20.04-x86_64 [+] bb6pvt7 ^[email protected]%[email protected] build_system=autotools libs=shared,static arch=linux-ubuntu20.04-x86_64 [+] 7gqmxvf ^[email protected]%[email protected]~pic build_system=autotools libs=shared,static arch=linux-ubuntu20.04-x86_64 [+] hjpgnti ^[email protected]%[email protected] build_system=autotools arch=linux-ubuntu20.04-x86_64 [e] 6gz5p46 ^[email protected]%[email protected]~link_llvm_dylib~llvm_dylib~openmp+rocm-device-libs build_system=cmake build_type=Release generator=ninja patches=a08bbe1 arch=linux-ubuntu20.04-x86_64 [+] l6dookb ^[email protected]%[email protected]~gdb~int64~ipo~real64+shared build_system=cmake build_type=Release generator=make patches=4991da9,93a7903,b1225da arch=linux-ubuntu20.04-x86_64 [e] 4vf2w2d ^[email protected]%[email protected]~argobots~cuda+fortran~hwloc+hydra+libxml2+pci~rocm+romio~slurm~vci~verbs~wrapperrpath build_system=autotools datatype-engine=auto device=ch4 netmod=ofi pmi=pmi arch=linux-ubuntu20.04-x86_64 [+] 2n67kk5 ^[email protected]%[email protected]~bignuma~consistent_fpcsr+fortran~ilp64+locking+pic+shared build_system=makefile symbol_suffix=none threads=none arch=linux-ubuntu20.04-x86_64 [+] ymeouv6 ^[email protected]%[email protected]+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=linux-ubuntu20.04-x86_64 [+] z5d3lru ^[email protected]%[email protected]+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=linux-ubuntu20.04-x86_64 [+] mxcjdbv ^[email protected]%[email protected]~debug~pic+shared build_system=generic arch=linux-ubuntu20.04-x86_64 [+] zafnh7n ^[email protected]%[email protected] build_system=autotools arch=linux-ubuntu20.04-x86_64 [+] adx2gsg ^[email protected]%[email protected] build_system=autotools arch=linux-ubuntu20.04-x86_64 [+] bhdepb5 ^[email protected]%[email protected] build_system=autotools patches=bbf97f1 arch=linux-ubuntu20.04-x86_64 [+] wcatis4 ^[email protected]%[email protected]~gdb~int64~ipo+shared build_system=cmake build_type=Release generator=make patches=4f89253,50ed208,704b84f arch=linux-ubuntu20.04-x86_64 [+] ur6zd25 ^superlu-dist@develop%[email protected]~cuda~int64~ipo~openmp~rocm+shared build_system=cmake build_type=Release generator=make arch=linux-ubuntu20.04-x86_64 [+] hpmj5kc ^[email protected]%[email protected]+compat+opt build_system=autotools patches=299b958,ae9077a,b692621 arch=linux-ubuntu20.04-x86_64Here are the CMake args used:
The text was updated successfully, but these errors were encountered: