Changes between Version 1 and Version 2 of Blas Level 1


Ignore:
Timestamp:
Aug 20, 2015 4:53:47 PM (6 years ago)
Author:
fuji
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Blas Level 1

    v1 v2  
    11= Blas Level 1 =
     2
     3To use MKL Blas on Cypress, you have to load the module,
     4{{{#!bash
     5$ module load intel-psxe
     6}}}
    27
    38== C ==
     
    9499}}}
    95100
     101Compile it as a sequential code with dynamic link libraries,
     102{{{#!bash
     103icc -DMKL_ILP64 -mkl=sequential blas1.c  -lpthread -lm
     104}}}
     105
     106Compile it as a parallel (OpenMP) code with dynamic link libraries,
     107{{{#!bash
     108icc -DMKL_ILP64 -openmp -mkl=parallel blas1.c  -lpthread -lm
     109}}}
     110
    96111== C++ ==
    97112{{{#!c++
     
    188203#endif
    189204}
     205}}}
     206
     207Compile it as a sequential code with dynamic link libraries,
     208{{{#!bash
     209icpc -DMKL_ILP64 -mkl=sequential blas1.c  -lpthread -lm
     210}}}
     211
     212Compile it as a parallel (OpenMP) code with dynamic link libraries,
     213{{{#!bash
     214icpc -DMKL_ILP64 -openmp -mkl=parallel blas1.c  -lpthread -lm
    190215}}}
    191216
     
    243268end program Blas1
    244269}}}
     270
     271Compile it as a sequential code with dynamic link libraries,
     272{{{#!bash
     273ifort -i8 -mkl=sequential blas1.c  -lpthread -lm
     274}}}
     275
     276Compile it as a parallel (OpenMP) code with dynamic link libraries,
     277{{{#!bash
     278ifort -i8 -openmp -mkl=parallel blas1.c  -lpthread -lm
     279}}}