Loading CMakeLists.txt +1 −0 Original line number Diff line number Diff line Loading @@ -171,6 +171,7 @@ if( WITH_CUDA STREQUAL "yes" ) endif( CUDA_FOUND ) endif( WITH_CUDA STREQUAL "yes" ) #### # Check for OpenMP # Loading TODO +5 −3 Original line number Diff line number Diff line Loading @@ -16,9 +16,6 @@ TODO: TODO: - zrejme bude potreba udrzovat ke kazdemu objektu jeho obraz na GPU/MIC - to by zarizovala metoda syncToDevice() napr. kazdy objekt by mel promennou modified, ktera by rikala, jestli se zmenil a zda je nutne ho prekopirovavat TODO: - zavest namespaces Loading @@ -31,6 +28,11 @@ TODO: CUDA unified memory se s nimi pracovat postaru - bylo by dobre to obalit unique poinetry, aby se nemusela delat dealokace rucne TODO: shared pointery - mohli bysme pomoci nich odstranit Shared objekty - asi by bylo lepsi datcounter z shared pointeru primo do array a tento counter by se alokoval az po porvnim sdileni dat - diky tomu by se array mohlo vytvaret i na gpu bez nutnosti dynamicke alokace, jen by nebylo mozne delat bind (nebo nejaky zjednoduseny) TODO: Mesh * vsechny traits zkusit presunout do jednotneho MeshTraits, tj. temer MeshConfigTraits ale pojmenovat jako MeshTraits * omezit tnlDimesnionsTag - asi to ale nepujde Loading examples/CMakeLists.txt +9 −0 Original line number Diff line number Diff line add_subdirectory( heat-equation ) add_subdirectory( navier-stokes ) #add_subdirectory( mean-curvature-flow ) #add_subdirectory( hamilton-jacobi ) #add_subdirectory( hamilton-jacobi-parallel ) #add_subdirectory( fast-sweeping ) #add_subdirectory( hamilton-jacobi-parallel-map ) #add_subdirectory( fast-sweeping-map ) #add_subdirectory( narrow-band ) add_subdirectory( advection ) add_subdirectory( inviscid-flow ) #add_subdirectory( mean-curvature-flow ) examples/heat-equation/tnl-heat-equation.h +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ class heatEquationConfig config.addEntry< String >( "boundary-conditions-file", "File with the values of the boundary conditions.", "boundary.tnl" ); config.addEntry< double >( "boundary-conditions-constant", "This sets a value in case of the constant boundary conditions." ); config.addEntry< double >( "right-hand-side-constant", "This sets a constant value for the right-hand side.", 0.0 ); //config.addEntry< String >( "initial-condition", "File with the initial condition.", "initial.tnl"); config.addEntry< String >( "initial-condition", "File with the initial condition.", "initial.tnl"); }; }; Loading examples/narrow-band/CMakeLists.txt 0 → 100755 +22 −0 Original line number Diff line number Diff line set( tnl_narrow_band_SOURCES # MainBuildConfig.h # tnlNarrowBand2D_impl.h # tnlNarrowBand.h # narrowBandConfig.h main.cpp) IF( BUILD_CUDA ) CUDA_ADD_EXECUTABLE(narrow-band${debugExt} main.cu) ELSE( BUILD_CUDA ) ADD_EXECUTABLE(narrow-band${debugExt} main.cpp) ENDIF( BUILD_CUDA ) target_link_libraries (narrow-band${debugExt} tnl${debugExt}-${tnlVersion} ) INSTALL( TARGETS narrow-band${debugExt} RUNTIME DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE ) #INSTALL( FILES ${tnl_narrow_band_SOURCES} # DESTINATION share/tnl-${tnlVersion}/examples/narrow-band ) Loading
CMakeLists.txt +1 −0 Original line number Diff line number Diff line Loading @@ -171,6 +171,7 @@ if( WITH_CUDA STREQUAL "yes" ) endif( CUDA_FOUND ) endif( WITH_CUDA STREQUAL "yes" ) #### # Check for OpenMP # Loading
TODO +5 −3 Original line number Diff line number Diff line Loading @@ -16,9 +16,6 @@ TODO: TODO: - zrejme bude potreba udrzovat ke kazdemu objektu jeho obraz na GPU/MIC - to by zarizovala metoda syncToDevice() napr. kazdy objekt by mel promennou modified, ktera by rikala, jestli se zmenil a zda je nutne ho prekopirovavat TODO: - zavest namespaces Loading @@ -31,6 +28,11 @@ TODO: CUDA unified memory se s nimi pracovat postaru - bylo by dobre to obalit unique poinetry, aby se nemusela delat dealokace rucne TODO: shared pointery - mohli bysme pomoci nich odstranit Shared objekty - asi by bylo lepsi datcounter z shared pointeru primo do array a tento counter by se alokoval az po porvnim sdileni dat - diky tomu by se array mohlo vytvaret i na gpu bez nutnosti dynamicke alokace, jen by nebylo mozne delat bind (nebo nejaky zjednoduseny) TODO: Mesh * vsechny traits zkusit presunout do jednotneho MeshTraits, tj. temer MeshConfigTraits ale pojmenovat jako MeshTraits * omezit tnlDimesnionsTag - asi to ale nepujde Loading
examples/CMakeLists.txt +9 −0 Original line number Diff line number Diff line add_subdirectory( heat-equation ) add_subdirectory( navier-stokes ) #add_subdirectory( mean-curvature-flow ) #add_subdirectory( hamilton-jacobi ) #add_subdirectory( hamilton-jacobi-parallel ) #add_subdirectory( fast-sweeping ) #add_subdirectory( hamilton-jacobi-parallel-map ) #add_subdirectory( fast-sweeping-map ) #add_subdirectory( narrow-band ) add_subdirectory( advection ) add_subdirectory( inviscid-flow ) #add_subdirectory( mean-curvature-flow )
examples/heat-equation/tnl-heat-equation.h +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ class heatEquationConfig config.addEntry< String >( "boundary-conditions-file", "File with the values of the boundary conditions.", "boundary.tnl" ); config.addEntry< double >( "boundary-conditions-constant", "This sets a value in case of the constant boundary conditions." ); config.addEntry< double >( "right-hand-side-constant", "This sets a constant value for the right-hand side.", 0.0 ); //config.addEntry< String >( "initial-condition", "File with the initial condition.", "initial.tnl"); config.addEntry< String >( "initial-condition", "File with the initial condition.", "initial.tnl"); }; }; Loading
examples/narrow-band/CMakeLists.txt 0 → 100755 +22 −0 Original line number Diff line number Diff line set( tnl_narrow_band_SOURCES # MainBuildConfig.h # tnlNarrowBand2D_impl.h # tnlNarrowBand.h # narrowBandConfig.h main.cpp) IF( BUILD_CUDA ) CUDA_ADD_EXECUTABLE(narrow-band${debugExt} main.cu) ELSE( BUILD_CUDA ) ADD_EXECUTABLE(narrow-band${debugExt} main.cpp) ENDIF( BUILD_CUDA ) target_link_libraries (narrow-band${debugExt} tnl${debugExt}-${tnlVersion} ) INSTALL( TARGETS narrow-band${debugExt} RUNTIME DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE ) #INSTALL( FILES ${tnl_narrow_band_SOURCES} # DESTINATION share/tnl-${tnlVersion}/examples/narrow-band )