Exemplo n.º 1
0
    print '---------------------------------------------------'
    print '  WARNING: hdf5 calls without call to op_partition '
    print '---------------------------------------------------'

########## finally, generate target-specific kernel files ################

#MPI+SEQ
#op2_gen_mpiseq(str(sys.argv[init_ctr]), date, consts, kernels, hydra)  # generate host stubs for MPI+SEQ
op2_gen_mpiseq3(
    str(sys.argv[init_ctr]), date, consts, kernels, hydra, bookleaf
)  # generate host stubs for MPI+SEQ -- optimised by removing the overhead due to fortran c to f pointer setups
#op2_gen_mpivec(str(sys.argv[init_ctr]), date, consts, kernels, hydra)  # generate host stubs for MPI+SEQ with intel vectorization optimisations

#OpenMP
op2_gen_openmp3(
    str(sys.argv[init_ctr]), date, consts, kernels, hydra, bookleaf
)  # optimised by removing the overhead due to fortran c to f pointer setups
#op2_gen_openmp2(str(sys.argv[init_ctr]), date, consts, kernels, hydra) # version without staging
#op2_gen_openmp(str(sys.argv[init_ctr]), date, consts, kernels, hydra)  # original version - one that most op2 papers refer to

#CUDA
#op2_gen_cuda(str(sys.argv[1]), date, consts, kernels, hydra, bookleaf)
op2_gen_cuda_permute(
    str(sys.argv[init_ctr]), date, consts, kernels, hydra, bookleaf
)  # permute does a different coloring (permute execution within blocks by color)
#op2_gen_cudaINC(str(sys.argv[1]), date, consts, kernels, hydra)      # stages increment data only in shared memory
#op2_gen_cuda_old(str(sys.argv[1]), date, consts, kernels, hydra)     # Code generator targettign Fermi GPUs

#if hydra:
#  op2_gen_cuda_hydra() #includes several Hydra specific features
Exemplo n.º 2
0
    print "---------------------------------------------------"

########## finally, generate target-specific kernel files ################

# MPI+SEQ
# op2_gen_mpiseq(str(sys.argv[init_ctr]), date, consts, kernels, hydra)  # generate host stubs for MPI+SEQ
op2_gen_mpiseq3(
    str(sys.argv[init_ctr]), date, consts, kernels, hydra
)  # generate host stubs for MPI+SEQ -- optimised by removing the overhead due to fortran c to f pointer setups
op2_gen_mpivec(
    str(sys.argv[init_ctr]), date, consts, kernels, hydra
)  # generate host stubs for MPI+SEQ with intel vectorization optimisations

# OpenMP
op2_gen_openmp3(
    str(sys.argv[init_ctr]), date, consts, kernels, hydra
)  # optimised by removing the overhead due to fortran c to f pointer setups
# op2_gen_openmp2(str(sys.argv[init_ctr]), date, consts, kernels, hydra) # version without staging
# op2_gen_openmp(str(sys.argv[init_ctr]), date, consts, kernels, hydra)  # original version - one that most op2 papers refer to

# CUDA
op2_gen_cuda(str(sys.argv[1]), date, consts, kernels, hydra)
# op2_gen_cuda_permute(str(sys.argv[1]), date, consts, kernels, hydra) # permute does a different coloring (permute execution within blocks by color)
# op2_gen_cudaINC(str(sys.argv[1]), date, consts, kernels, hydra)      # stages increment data only in shared memory
# op2_gen_cuda_old(str(sys.argv[1]), date, consts, kernels, hydra)     # Code generator targettign Fermi GPUs

# if hydra:
#  op2_gen_cuda_hydra() #includes several Hydra specific features

##########################################################################
#                      ** END MAIN APPLICATION **