#NEWLINE# @ qpu #NEWLINE# def boilerplate( asm , f , nrows ) : #NEWLINE# #INDENT# setup_dma_load ( nrows = nrows ) #NEWLINE# start_dma_load ( uniform ) #NEWLINE# wait_dma_load ( ) #NEWLINE# setup_vpm_read ( nrows = nrows ) #NEWLINE# setup_vpm_write ( ) #NEWLINE# f ( asm ) #NEWLINE# setup_dma_store ( nrows = nrows ) #NEWLINE# start_dma_store ( uniform ) #NEWLINE# wait_dma_store ( ) #NEWLINE# exit ( )