Hi all,

I am trying installing dealII with CUDA in a GPG machine by following this:
https://www.dealii.org/9.0.0/external-libs/cuda.html

But I get this error in terms of matrix_tools.cc.o. Is this because I don't
turn off Trilinos stuff while cmaking deal.II for successful installation
with CUDA?

/usr/bin/cmake3 \
 -DCMAKE_INSTALL_PREFIX=/work1/chueh5851a/software/dealii \
 -DP4EST_DIR=/work1/chueh5851a/software/p4est-2.0/FAST \
 -DTRILINOS_DIR=/work1/chueh5851a/software/Trilinos \
 -D DEAL_II_WITH_MPI:BOOL=ON \
 -D DEAL_II_WITH_THREADS:BOOL=ON \
 -D DEAL_II_WITH_UMFPACK:BOOL=ON \
 -D DEAL_II_WITH_TRILINOS:BOOL=ON \
 -D DEAL_II_WITH_CUDA=ON   \
 -D DEAL_II_WITH_CXX14=OFF \
 -D DEAL_II_WITH_PETSC:BOOL=OFF \
 -D DEAL_II_WITH_SLEPC:BOOL=OFF \
 `pwd`/..

===========make Errors============================================
...
[ 56%] Building CXX object
source/numerics/CMakeFiles/obj_numerics_debug.dir/matrix_tools.cc.o
[ 56%] Building CXX object
source/lac/CMakeFiles/obj_lac_debug.dir/matrix_out.cc.o
/work1/chueh5851a/software/Trilinos/include/impl/Kokkos_ConcurrentBitset.hpp(146):
error: namespace "Kokkos" has no member "atomic_fetch_add"

/work1/chueh5851a/software/Trilinos/include/impl/Kokkos_ConcurrentBitset.hpp(154):
error: namespace "Kokkos" has no member "atomic_fetch_add"

/work1/chueh5851a/software/Trilinos/include/impl/Kokkos_ConcurrentBitset.hpp(169):
error: namespace "Kokkos" has no member "atomic_fetch_or"

/work1/chueh5851a/software/Trilinos/include/impl/Kokkos_ConcurrentBitset.hpp(237):
error: namespace "Kokkos" has no member "atomic_fetch_add"

/work1/chueh5851a/software/Trilinos/include/impl/Kokkos_ConcurrentBitset.hpp(245):
error: namespace "Kokkos" has no member "atomic_fetch_add"

/work1/chueh5851a/software/Trilinos/include/impl/Kokkos_ConcurrentBitset.hpp(260):
error: namespace "Kokkos" has no member "atomic_fetch_or"

/work1/chueh5851a/software/Trilinos/include/impl/Kokkos_ConcurrentBitset.hpp(304):
error: namespace "Kokkos" has no member "atomic_fetch_and"

/work1/chueh5851a/software/Trilinos/include/impl/Kokkos_ConcurrentBitset.hpp(314):
error: namespace "Kokkos" has no member "atomic_fetch_add"

/work1/chueh5851a/software/Trilinos/include/impl/Kokkos_ConcurrentBitset.hpp(338):
error: namespace "Kokkos" has no member "atomic_fetch_or"

/work1/chueh5851a/software/Trilinos/include/impl/Kokkos_ConcurrentBitset.hpp(348):
error: namespace "Kokkos" has no member "atomic_fetch_add"

/work1/chueh5851a/software/Trilinos/include/impl/Kokkos_TaskQueue.hpp(226):
error: namespace "Kokkos" has no member "atomic_exchange"

/work1/chueh5851a/software/Trilinos/include/impl/Kokkos_HostBarrier.hpp(110):
error: namespace "Kokkos" has no member "atomic_fetch_add"

/work1/chueh5851a/software/Trilinos/include/impl/Kokkos_HostBarrier.hpp(113):
error: namespace "Kokkos" has no member "atomic_fetch_add"

/work1/chueh5851a/software/Trilinos/include/impl/Kokkos_HostBarrier.hpp(130):
error: namespace "Kokkos" has no member "atomic_fetch_sub"

/work1/chueh5851a/software/Trilinos/include/impl/Kokkos_HostBarrier.hpp(131):
error: namespace "Kokkos" has no member "atomic_fetch_add"

/work1/chueh5851a/software/Trilinos/include/impl/Kokkos_HostBarrier.hpp(239):
error: namespace "Kokkos" has no member "atomic_fetch_add"

/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(93):
error: namespace "Kokkos" has no member "Cuda"

/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(94):
error: namespace "Kokkos" has no member "Cuda"

/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(98):
error: namespace "Kokkos" has no member "Cuda"

/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(102):
error: namespace "Kokkos" has no member "Cuda"

/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(113):
error: namespace "Kokkos" has no member "Cuda"

/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(120):
error: namespace "Kokkos" has no member "Cuda"

/work1/chueh5851a/software/Trilinos/include/Kokkos_MemoryPool.hpp(112):
error: a class or namespace qualified name is required
          detected during instantiation of class
"Kokkos::MemoryPool<DeviceType> [with DeviceType=<error-type>]"
/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(122):
here

/work1/chueh5851a/software/Trilinos/include/Kokkos_MemoryPool.hpp(112):
error: global-scope qualifier (leading "::") is not allowed
          detected during instantiation of class
"Kokkos::MemoryPool<DeviceType> [with DeviceType=<error-type>]"
/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(122):
here

/work1/chueh5851a/software/Trilinos/include/Kokkos_MemoryPool.hpp(112):
error: expected a ";"
          detected during instantiation of class
"Kokkos::MemoryPool<DeviceType> [with DeviceType=<error-type>]"
/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(122):
here

/work1/chueh5851a/software/Trilinos/include/Kokkos_MemoryPool.hpp(116):
error: identifier "base_memory_space" is undefined
          detected during instantiation of class
"Kokkos::MemoryPool<DeviceType> [with DeviceType=<error-type>]"
/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(122):
here

/work1/chueh5851a/software/Trilinos/include/Kokkos_Concepts.hpp(259):
error: static assertion failed with "template arguments must be memory
spaces"
          detected during:
            instantiation of class
"Kokkos::Impl::MemorySpaceAccess<DstMemorySpace, SrcMemorySpace> [with
DstMemorySpace=Kokkos::HostSpace, SrcMemorySpace=<error-type>]"
/work1/chueh5851a/software/Trilinos/include/Kokkos_MemoryPool.hpp(116): here
            instantiation of class "Kokkos::MemoryPool<DeviceType> [with
DeviceType=<error-type>]"
/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(122):
here

/work1/chueh5851a/software/Trilinos/include/Kokkos_MemoryPool.hpp(120):
error: identifier "base_memory_space" is undefined
          detected during instantiation of class
"Kokkos::MemoryPool<DeviceType> [with DeviceType=<error-type>]"
/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(122):
here

/work1/chueh5851a/software/Trilinos/include/Kokkos_MemoryPool.hpp(346):
error: identifier "base_memory_space" is undefined
          detected during instantiation of class
"Kokkos::MemoryPool<DeviceType> [with DeviceType=<error-type>]"
/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(122):
here

/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(122):
error: name followed by "::" must be a class or namespace name

/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(128):
error: identifier "CUDA_SAFE_CALL" is undefined

/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(132):
error: namespace "Kokkos" has no member "Cuda"

/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(137):
error: namespace "Kokkos" has no member "Cuda"

/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(139):
error: identifier "CUDA_SAFE_CALL" is undefined

/work1/chueh5851a/CUDA/dealii/bundled/boost-1.62.0/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp(75):
warning: variable "tmp" was set but never used

/work1/chueh5851a/CUDA/dealii/bundled/boost-1.62.0/include/boost/mpl/print.hpp(64):
warning: integer conversion resulted in a change of sign

/work1/chueh5851a/CUDA/dealii/bundled/boost-1.62.0/include/boost/mpl/set/aux_/item.hpp(47):
warning: "char (&operator||(const boost::mpl::s_item<T, Base> &,
boost::mpl::aux::type_wrapper<T>
*))[boost::mpl::next<Base::order>::type::value]" declares a non-template
function -- add <> to refer to a template instance

/work1/chueh5851a/CUDA/dealii/bundled/boost-1.62.0/include/boost/mpl/set/aux_/item.hpp(48):
warning: "boost::mpl::aux::no_tag operator%(const boost::mpl::s_item<T,
Base> &, boost::mpl::aux::type_wrapper<T> *)" declares a non-template
function -- add <> to refer to a template instance

/work1/chueh5851a/CUDA/dealii/bundled/boost-1.62.0/include/boost/mpl/set/aux_/item.hpp(63):
warning: "boost::mpl::aux::yes_tag operator%(const boost::mpl::s_mask<T,
Base> &, boost::mpl::aux::type_wrapper<T> *)" declares a non-template
function -- add <> to refer to a template instance

/work1/chueh5851a/CUDA/dealii/bundled/boost-1.62.0/include/boost/mpl/set/aux_/item.hpp(77):
warning: "boost::mpl::aux::no_tag operator%(const boost::mpl::s_unmask<T,
Base> &, boost::mpl::aux::type_wrapper<T> *)" declares a non-template
function -- add <> to refer to a template instance

/work1/chueh5851a/software/Trilinos/include/Kokkos_MemoryPool.hpp(486):
error: class "Kokkos::Impl::SharedAllocationRecord<<error-type>, void>" has
no member "allocate"
          detected during instantiation of
"Kokkos::MemoryPool<DeviceType>::MemoryPool(const
Kokkos::MemoryPool<DeviceType>::base_memory_space &, size_t, size_t,
size_t, size_t) [with DeviceType=<error-type>]"
/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(122):
here

/work1/chueh5851a/software/Trilinos/include/Kokkos_MemoryPool.hpp(526):
error: identifier "base_memory_space" is undefined
          detected during instantiation of
"Kokkos::MemoryPool<DeviceType>::MemoryPool(const
Kokkos::MemoryPool<DeviceType>::base_memory_space &, size_t, size_t,
size_t, size_t) [with DeviceType=<error-type>]"
/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(122):
here

/work1/chueh5851a/software/Trilinos/include/Kokkos_Core_fwd.hpp(242):
error: a class or namespace qualified name is required
          detected during:
            processing of template argument list for
"Kokkos::Impl::DeepCopy" based on template arguments <<error-type>,
Kokkos::HostSpace>
/work1/chueh5851a/software/Trilinos/include/Kokkos_MemoryPool.hpp(526): here
            instantiation of
"Kokkos::MemoryPool<DeviceType>::MemoryPool(const
Kokkos::MemoryPool<DeviceType>::base_memory_space &, size_t, size_t,
size_t, size_t) [with DeviceType=<error-type>]"
/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(122):
here

/work1/chueh5851a/software/Trilinos/include/Kokkos_Core_fwd.hpp(242):
error: expected a ","
          detected during:
            processing of template argument list for
"Kokkos::Impl::DeepCopy" based on template arguments <<error-type>,
Kokkos::HostSpace>
/work1/chueh5851a/software/Trilinos/include/Kokkos_MemoryPool.hpp(526): here
            instantiation of
"Kokkos::MemoryPool<DeviceType>::MemoryPool(const
Kokkos::MemoryPool<DeviceType>::base_memory_space &, size_t, size_t,
size_t, size_t) [with DeviceType=<error-type>]"
/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(122):
here

/work1/chueh5851a/software/Trilinos/include/Kokkos_MemoryPool.hpp(526):
error: incomplete type is not allowed
          detected during instantiation of
"Kokkos::MemoryPool<DeviceType>::MemoryPool(const
Kokkos::MemoryPool<DeviceType>::base_memory_space &, size_t, size_t,
size_t, size_t) [with DeviceType=<error-type>]"
/work1/chueh5851a/software/Trilinos/include/Sacado_DynamicArrayTraits.hpp(122):
here

39 errors detected in the compilation of
"/tmp/tmpxft_000389ff_00000000-6_cuda_matrix_free.cpp1.ii".
make[2]: ***
[source/matrix_free/CMakeFiles/obj_matrix_free_debug.dir/cuda_matrix_free.cu.o]
Error 1
make[2]: *** Waiting for unfinished jobs....

Sincerely,

Chih-Che

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to