[Trilinos-Users] Unable to Build Trilinos with CUDA 4.0 [Kokkos Error]

Gennadiy Rishkin gennadiy.rishkin at gmail.com
Tue Mar 22 18:32:02 MDT 2011


Thanks Chris, that solved the problem.

Keep up the excellent work with Kokkos and Tpetra..

Gennadiy


On 22 March 2011 21:19, Baker, Christopher G. <bakercg at ornl.gov> wrote:

> It looks like this the following is what you need (see below).
>
> The reason is that this test is hard-coded to double. If we are using
> explicit instantiation, but double wasn't instantiated for Tpetra+Thrust
> objects, this results in a link error. The fix below keeps the GEMMTiming
> test from being built when Tpetra+Thrust isn't instantiated on double. If
> your GPU supports double, you will need to enable double via
>  -D Kokkos_ENABLE_CUDA_DOUBLE:BOOL=ON
> It is disabled by default, as not all CUDA-capable GPUs are double-capable.
>
> I will push this to 10.6 branch for the upcoming 10.6.4 release, and to the
> dev. Thanks for catching this; I should have seen it, except that our
> nightly CUDA testing platform is currently dead.
>
> Chris
>
> diff --git a/packages/tpetra/test/MultiVector/CMakeLists.txt
> b/packages/tpetra/test/MultiVector/CMakeLists.txt
> index 0dfa641..07e7f8f 100644
> --- a/packages/tpetra/test/MultiVector/CMakeLists.txt
> +++ b/packages/tpetra/test/MultiVector/CMakeLists.txt
> @@ -34,7 +34,7 @@ IF (Kokkos_ENABLE_ThreadPool AND Tpetra_ENABLE_MPI)
>   APPEND_SET(TIMING_INSTALLS Tpetra_GEMMTiming_TPI)
>  ENDIF()
>
> -IF (Kokkos_ENABLE_Thrust AND Tpetra_ENABLE_MPI)
> +IF (Kokkos_ENABLE_Thrust AND Kokkos_ENABLE_CUDA_DOUBLE AND
> Tpetra_ENABLE_MPI)
>   PACKAGE_ADD_EXECUTABLE(
>       GEMMTiming_Thrust
>       SOURCES GEMMTiming_Thrust
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20110323/5d8d83d5/attachment.html 


More information about the Trilinos-Users mailing list