Skip to content

Latest commit

 

History

History
125 lines (116 loc) · 4.31 KB

README.md

File metadata and controls

125 lines (116 loc) · 4.31 KB

Purpose:

Example of using BLAS libraries on the cluster. The specific example creates 100X100 random matrix, a vector of dimension 100 and performs matrix-vector multiplication.

Contents:

(1) blas_test.f90: Fortran source code

(2) Makefile: Makefile to compile the source code

(3) blas_test.sbatch: Btach-job submission script to send the job to the queue

Example Usage:

source new-modules.sh
make
sbatch blas_test.sbatch

Example Output:

 Vector Vout:
           1   25.173201914050779     
           2   25.542639298693242     
           3   25.363085121856649     
           4   24.064896892715677     
           5   22.765408132534201     
           6   25.122410155603571     
           7   22.878604915102780     
           8   25.790335400142595     
           9   25.051709637631145     
          10   25.659498202386164     
          11   25.792645995680576     
          12   25.324391686562979     
          13   25.128181835955335     
          14   23.380410807295501     
          15   22.465517792428468     
          16   25.329548771279001     
          17   23.729500315138093     
          18   23.729904729199802     
          19   23.443732562913880     
          20   22.144676576853303     
          21   26.363404160830544     
          22   30.891400005121795     
          23   21.473090335608578     
          24   23.341880914064461     
          25   20.980524141108045     
          26   23.338036811032318     
          27   23.082925092696552     
          28   23.207431558582371     
          29   23.954459975689147     
          30   26.726096709146432     
          31   21.661645491999057     
          32   28.611813011640614     
          33   26.377413220213981     
          34   23.062963865531845     
          35   23.676212785674956     
          36   25.443473409849432     
          37   26.621186299340554     
          38   26.731032806244727     
          39   26.873982794239275     
          40   26.448760586845044     
          41   22.768705571967448     
          42   25.245064839882048     
          43   24.978667733902427     
          44   27.127272907661645     
          45   24.025439402435175     
          46   24.379897264445741     
          47   23.610017400944265     
          48   24.072214094881840     
          49   23.808545223903458     
          50   24.981543804868902     
          51   24.595239610918117     
          52   24.985393274980041     
          53   26.701523829539212     
          54   22.820784897626979     
          55   23.794194047432580     
          56   27.385451027223322     
          57   25.015627808852496     
          58   25.510047252160089     
          59   25.666952684381659     
          60   25.650104984272403     
          61   24.982577027472331     
          62   25.068292395782652     
          63   24.077905013569293     
          64   22.233255044086640     
          65   24.553033595930195     
          66   26.173609147669122     
          67   24.277852446151460     
          68   23.422625953907197     
          69   28.777163507420472     
          70   26.880919270489994     
          71   26.273790854681891     
          72   28.896919778602030     
          73   26.722413059020955     
          74   24.715602743051843     
          75   24.244503719240029     
          76   20.876336780223674     
          77   26.164087964346141     
          78   26.147945767259948     
          79   24.460625205747043     
          80   25.963371406119961     
          81   26.244556129085549     
          82   25.404186830197499     
          83   26.056266365416157     
          84   24.445184773190974     
          85   26.472436345405296     
          86   24.599606500854602     
          87   25.611454650653197     
          88   28.903142039641928     
          89   22.477799677888200     
          90   25.140171260537791     
          91   24.701886549918143     
          92   23.228501267726013     
          93   22.024866588186953     
          94   26.913536990055928     
          95   24.811448566331471     
          96   25.374300728771910     
          97   25.780052726009359     
          98   27.001826536045286     
          99   21.359693460593437     
         100   21.963571993716787     
STOP End of program.