11#!/usr/bin/env python
22"""This is a minimal example for calling Fortran functions"""
33
4+ from __future__ import print_function
45import logging
56import json
67import numpy as np
@@ -21,11 +22,17 @@ def tune():
2122 tune_params ["N" ] = [size ]
2223 tune_params ["NTHREADS" ] = [16 , 8 , 4 , 2 , 1 ]
2324
25+ print ("compile with ftn using intel on cray" )
26+ result , env = tune_kernel ("time_vector_add" , "vector_add.F90" , size ,
27+ args , tune_params , lang = "C" , compiler = "ftn" )
28+
2429 print ("compile with gfortran" )
25- result , env = tune_kernel ("time_vector_add" , "vector_add.F90" , size , args , tune_params , lang = "C" , compiler = "gfortran" )
30+ result , env = tune_kernel ("time_vector_add" , "vector_add.F90" , size ,
31+ args , tune_params , lang = "C" , compiler = "gfortran" )
2632
2733 print ("compile with pgfortran" )
28- result , env = tune_kernel ("time_vector_add" , "vector_add.F90" , size , args , tune_params , lang = "C" , compiler = "pgfortran" )
34+ result , env = tune_kernel ("time_vector_add" , "vector_add.F90" , size ,
35+ args , tune_params , lang = "C" , compiler = "pgfortran" )
2936
3037 return result
3138
0 commit comments