[araim1@maya-usr1 blas]$ module load gcc [araim1@maya-usr1 openblas]$ module load openblas/dynamic [araim1@maya-usr1 ~]$
cblas_dgemm(CblasColMajor, CblasNoTrans, CblasNoTrans, m, n, k, 1.0, A, m, B, k, 0.0, C, m);
#!/bin/bash #SBATCH --job-name=openblas #SBATCH --output=slurm.out #SBATCH --error=slurm.err #SBATCH --partition=develop #SBATCH --constraint=hpcf2013 hostname ./matrix_multiply
#!/bin/bash #SBATCH --job-name=openblas #SBATCH --output=slurm.out #SBATCH --error=slurm.err #SBATCH --partition=develop #SBATCH --constraint=hpcf2010 hostname ./matrix_multiply
[araim1@maya-usr1 openblas]$ make clean rm -f *.o matrix_multiply [araim1@maya-usr1 openblas]$ make gcc -I/cm/shared/apps/openblas/dynamic/0.2.6/include -O3 -std=c99 -c -o matrix_multiply.o matrix_multiply.c gcc -I/cm/shared/apps/openblas/dynamic/0.2.6/include -O3 -std=c99 -I/cm/shared/apps/openblas/dynamic/0.2.6/include matrix_multiply.o -o matrix_multiply -L/cm/shared/apps/openblas/dynamic/0.2.6/lib -lm -lopenblas [araim1@maya-usr1 openblas]$ sbatch run.slurm Submitted batch job 7345 [araim1@maya-usr1 openblas]$ cat slurm.err [araim1@maya-usr1 openblas]$ cat slurm.out n1 Matrix A (3 x 5) is: 1.0000 0.7290 0.5314 0.3874 0.2824 0.9000 0.6561 0.4783 0.3487 0.2542 0.8100 0.5905 0.4305 0.3138 0.2288 Matrix B (5 x 4) is: 1.0000 0.5905 0.3487 0.2059 0.9000 0.5314 0.3138 0.1853 0.8100 0.4783 0.2824 0.1668 0.7290 0.4305 0.2542 0.1501 0.6561 0.3874 0.2288 0.1351 Matrix C (3 x 4) = AB is: 2.5543 1.5083 0.8906 0.5259 2.2989 1.3575 0.8016 0.4733 2.0690 1.2217 0.7214 0.4260 [araim1@maya-usr1 openblas]$ sbatch run2.slurm Submitted batch job 7346 [araim1@maya-usr1 openblas]$ cat slurm.err [araim1@maya-usr1 openblas]$ cat slurm.out n70 Matrix A (3 x 5) is: 1.0000 0.7290 0.5314 0.3874 0.2824 0.9000 0.6561 0.4783 0.3487 0.2542 0.8100 0.5905 0.4305 0.3138 0.2288 Matrix B (5 x 4) is: 1.0000 0.5905 0.3487 0.2059 0.9000 0.5314 0.3138 0.1853 0.8100 0.4783 0.2824 0.1668 0.7290 0.4305 0.2542 0.1501 0.6561 0.3874 0.2288 0.1351 Matrix C (3 x 4) = AB is: 2.5543 1.5083 0.8906 0.5259 2.2989 1.3575 0.8016 0.4733 2.0690 1.2217 0.7214 0.4260 [araim1@maya-usr1 openblas]$