Loading Documentation/Examples/Containers/CMakeLists.txt +4 −4 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ set( MPI_COMMON_EXAMPLES DistributedArrayExample ) SET( mpi_test_parameters -np 4 -H localhost:4 "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DistributedArrayTest${CMAKE_EXECUTABLE_SUFFIX}" ) SET( mpirun_parameters -np 4 -H localhost:4 ) if( BUILD_CUDA ) foreach( target IN ITEMS ${COMMON_EXAMPLES} ) Loading @@ -21,7 +21,7 @@ if( BUILD_CUDA ) if( ${BUILD_MPI} ) foreach( target IN ITEMS ${MPI_COMMON_EXAMPLES} ) cuda_add_executable( ${target}-cuda ${target}.cu OPTIONS ) add_custom_command( COMMAND "mpirun" ${mpi_test_parameters} ${target}-cuda > ${TNL_DOCUMENTATION_OUTPUT_SNIPPETS_PATH}/${target}.out OUTPUT ${target}.out ) add_custom_command( COMMAND "mpirun" ${mpirun_parameters} ${target}-cuda > ${TNL_DOCUMENTATION_OUTPUT_SNIPPETS_PATH}/${target}.out OUTPUT ${target}.out ) set( CUDA_OUTPUTS ${CUDA_OUTPUTS} ${target}.out ) endforeach() endif() Loading @@ -34,8 +34,8 @@ else() if( ${BUILD_MPI} ) foreach( target IN ITEMS ${MPI_COMMON_EXAMPLES} ) add_executable( ${target} ${target}.cpp ) add_custom_command( COMMAND "mpirun" ${mpi_test_parameters} ${target}-cuda > ${TNL_DOCUMENTATION_OUTPUT_SNIPPETS_PATH}/${target}.out OUTPUT ${target}.out ) set( HOST_OUTPUTS ${CUDA_OUTPUTS} ${target}.out ) add_custom_command( COMMAND "mpirun" ${mpirun_parameters} ${target} > ${TNL_DOCUMENTATION_OUTPUT_SNIPPETS_PATH}/${target}.out OUTPUT ${target}.out ) set( HOST_OUTPUTS ${HOST_OUTPUTS} ${target}.out ) endforeach() endif() endif() Loading Loading
Documentation/Examples/Containers/CMakeLists.txt +4 −4 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ set( MPI_COMMON_EXAMPLES DistributedArrayExample ) SET( mpi_test_parameters -np 4 -H localhost:4 "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DistributedArrayTest${CMAKE_EXECUTABLE_SUFFIX}" ) SET( mpirun_parameters -np 4 -H localhost:4 ) if( BUILD_CUDA ) foreach( target IN ITEMS ${COMMON_EXAMPLES} ) Loading @@ -21,7 +21,7 @@ if( BUILD_CUDA ) if( ${BUILD_MPI} ) foreach( target IN ITEMS ${MPI_COMMON_EXAMPLES} ) cuda_add_executable( ${target}-cuda ${target}.cu OPTIONS ) add_custom_command( COMMAND "mpirun" ${mpi_test_parameters} ${target}-cuda > ${TNL_DOCUMENTATION_OUTPUT_SNIPPETS_PATH}/${target}.out OUTPUT ${target}.out ) add_custom_command( COMMAND "mpirun" ${mpirun_parameters} ${target}-cuda > ${TNL_DOCUMENTATION_OUTPUT_SNIPPETS_PATH}/${target}.out OUTPUT ${target}.out ) set( CUDA_OUTPUTS ${CUDA_OUTPUTS} ${target}.out ) endforeach() endif() Loading @@ -34,8 +34,8 @@ else() if( ${BUILD_MPI} ) foreach( target IN ITEMS ${MPI_COMMON_EXAMPLES} ) add_executable( ${target} ${target}.cpp ) add_custom_command( COMMAND "mpirun" ${mpi_test_parameters} ${target}-cuda > ${TNL_DOCUMENTATION_OUTPUT_SNIPPETS_PATH}/${target}.out OUTPUT ${target}.out ) set( HOST_OUTPUTS ${CUDA_OUTPUTS} ${target}.out ) add_custom_command( COMMAND "mpirun" ${mpirun_parameters} ${target} > ${TNL_DOCUMENTATION_OUTPUT_SNIPPETS_PATH}/${target}.out OUTPUT ${target}.out ) set( HOST_OUTPUTS ${HOST_OUTPUTS} ${target}.out ) endforeach() endif() endif() Loading