Skip to content
Snippets Groups Projects
Commit c04814b8 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Added CUDA build for eikonal solver.

parent bb045e76
No related branches found
No related tags found
1 merge request!1Hamilton jacobi
...@@ -10,8 +10,13 @@ set( tnl_hamilton_jacobi_SOURCES ...@@ -10,8 +10,13 @@ set( tnl_hamilton_jacobi_SOURCES
#ADD_EXECUTABLE(tnl-hamilton-jacobi${debugExt} main.cpp) #ADD_EXECUTABLE(tnl-hamilton-jacobi${debugExt} main.cpp)
#target_link_libraries (tnl-hamilton-jacobi${debugExt} tnl${debugExt}-${tnlVersion} ) #target_link_libraries (tnl-hamilton-jacobi${debugExt} tnl${debugExt}-${tnlVersion} )
ADD_EXECUTABLE(tnl-direct-eikonal-solver${debugExt} tnl-direct-eikonal-solver.cpp ) IF( BUILD_CUDA )
target_link_libraries (tnl-direct-eikonal-solver${debugExt} tnl${debugExt}-${tnlVersion} ) CUDA_ADD_EXECUTABLE(tnl-direct-eikonal-solver${debugExt} tnl-direct-eikonal-solver.cu )
target_link_libraries (tnl-direct-eikonal-solver${debugExt} tnl${debugExt}-${tnlVersion} ${CUSPARSE_LIBRARY} )
ELSE( BUILD_CUDA )
ADD_EXECUTABLE(tnl-direct-eikonal-solver${debugExt} tnl-direct-eikonal-solver.cpp )
target_link_libraries (tnl-direct-eikonal-solver${debugExt} tnl${debugExt}-${tnlVersion} )
ENDIF( BUILD_CUDA )
INSTALL( TARGETS #tnl-hamilton-jacobi${debugExt} INSTALL( TARGETS #tnl-hamilton-jacobi${debugExt}
......
...@@ -28,7 +28,7 @@ template< typename Real, ...@@ -28,7 +28,7 @@ template< typename Real,
class FastSweepingMethod< Meshes::Grid< 1, Real, Device, Index >, Anisotropy > class FastSweepingMethod< Meshes::Grid< 1, Real, Device, Index >, Anisotropy >
: public tnlDirectEikonalMethodsBase< Meshes::Grid< 1, Real, Device, Index > > : public tnlDirectEikonalMethodsBase< Meshes::Grid< 1, Real, Device, Index > >
{ {
static_assert( std::is_same< Device, TNL::Devices::Host >::value, "The fast sweeping method works only on CPU." ); //static_assert( std::is_same< Device, TNL::Devices::Host >::value, "The fast sweeping method works only on CPU." );
public: public:
...@@ -66,7 +66,7 @@ template< typename Real, ...@@ -66,7 +66,7 @@ template< typename Real,
class FastSweepingMethod< Meshes::Grid< 2, Real, Device, Index >, Anisotropy > class FastSweepingMethod< Meshes::Grid< 2, Real, Device, Index >, Anisotropy >
: public tnlDirectEikonalMethodsBase< Meshes::Grid< 2, Real, Device, Index > > : public tnlDirectEikonalMethodsBase< Meshes::Grid< 2, Real, Device, Index > >
{ {
static_assert( std::is_same< Device, TNL::Devices::Host >::value, "The fast sweeping method works only on CPU." ); //static_assert( std::is_same< Device, TNL::Devices::Host >::value, "The fast sweeping method works only on CPU." );
public: public:
...@@ -104,7 +104,7 @@ template< typename Real, ...@@ -104,7 +104,7 @@ template< typename Real,
class FastSweepingMethod< Meshes::Grid< 3, Real, Device, Index >, Anisotropy > class FastSweepingMethod< Meshes::Grid< 3, Real, Device, Index >, Anisotropy >
: public tnlDirectEikonalMethodsBase< Meshes::Grid< 3, Real, Device, Index > > : public tnlDirectEikonalMethodsBase< Meshes::Grid< 3, Real, Device, Index > >
{ {
static_assert( std::is_same< Device, TNL::Devices::Host >::value, "The fast sweeping method works only on CPU." ); //static_assert( std::is_same< Device, TNL::Devices::Host >::value, "The fast sweeping method works only on CPU." );
public: public:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment