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

Fixing small bug in tnlMatrix.

parent 4bead8e6
No related branches found
No related tags found
No related merge requests found
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
TARGET=TNL TARGET=TNL
INSTALL_PREFIX=${HOME}/local INSTALL_PREFIX=${HOME}/local
WITH_CUDA=yes WITH_CUDA=no
WITH_CUSPARSE=no WITH_CUSPARSE=no
CUDA_ARCHITECTURE=2.0 CUDA_ARCHITECTURE=2.0
TEMPLATE_EXPLICIT_INSTANTIATION=yes TEMPLATE_EXPLICIT_INSTANTIATION=yes
VERBOSE="VERBOSE=1" #VERBOSE="VERBOSE=1"
CMAKE="cmake" CMAKE="cmake"
CPUS=`grep -c processor /proc/cpuinfo` CPUS=`grep -c processor /proc/cpuinfo`
......
...@@ -137,7 +137,7 @@ bool tnlMatrix< Real, Device, Index >::save( tnlFile& file ) const ...@@ -137,7 +137,7 @@ bool tnlMatrix< Real, Device, Index >::save( tnlFile& file ) const
if( ! tnlObject::save( file ) || if( ! tnlObject::save( file ) ||
! file.write( &this->rows ) || ! file.write( &this->rows ) ||
! file.write( &this->columns ) || ! file.write( &this->columns ) ||
! this->values.save>( file ) ) ! this->values.save( file ) )
return false; return false;
#endif #endif
return true; return true;
......
...@@ -23,8 +23,7 @@ if( BUILD_CUDA ) ...@@ -23,8 +23,7 @@ if( BUILD_CUDA )
TARGET_LINK_LIBRARIES( tnl-unit-tests${mpiExt}${debugExt} ${CPPUNIT_LIBRARIES} TARGET_LINK_LIBRARIES( tnl-unit-tests${mpiExt}${debugExt} ${CPPUNIT_LIBRARIES}
tnl${mpiExt}${debugExt}-0.1 ) tnl${mpiExt}${debugExt}-0.1 )
else() else()
ADD_EXECUTABLE( tnl-unit-tests${mpiExt}${debugExt} ${headers} tnl-unit-tests.cpp ADD_EXECUTABLE( tnl-unit-tests${mpiExt}${debugExt} ${headers} tnl-unit-tests.cpp )
OPTIONS -arch sm_20 -shared )
TARGET_LINK_LIBRARIES( tnl-unit-tests${mpiExt}${debugExt} ${CPPUNIT_LIBRARIES} TARGET_LINK_LIBRARIES( tnl-unit-tests${mpiExt}${debugExt} ${CPPUNIT_LIBRARIES}
tnl${mpiExt}${debugExt}-0.1 ) tnl${mpiExt}${debugExt}-0.1 )
endif() endif()
......
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