GitLab maintenance scheduled for Today, 2020-02-27, from 17:00 to 18:00 CT - Services will be unavailable during this time.

Commit 349ecc87 authored by Valentin Reis's avatar Valentin Reis

icc -> gcc

parent b6ccaaea
CC = icc #CC = icc
CFLAGS =-O1 -Wall -qopenmp -mkl=parallel #CFLAGS =-O1 -Wall -qopenmp -mkl=parallel
LDFLAGS =-qopenmp -lzmq -mkl=parallel -lgsl -lnrm -lmpi #LDFLAGS =-qopenmp -lzmq -mkl=parallel -lgsl -lnrm -lmpi
CC = gcc
CFLAGS =-O1 -Wall -qopenmp
LDFLAGS =-qopenmp -lzmq -lgsl -lnrm -lmpi
BINS = dgemm randomwalk BINS = dgemm randomwalk
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include "mkl.h" /*#include "mkl.h"*/
#include <nrm.h> #include <nrm.h>
#define min(x,y) (((x) < (y)) ? (x) : (y)) #define min(x,y) (((x) < (y)) ? (x) : (y))
...@@ -17,9 +17,12 @@ int main() ...@@ -17,9 +17,12 @@ int main()
m = 5000, k = 200, n = 5000; m = 5000, k = 200, n = 5000;
alpha = 1.0; beta = 0.0; alpha = 1.0; beta = 0.0;
A = (double *)mkl_malloc( m*k*sizeof( double ), 64 ); A = (double *)malloc( m*k*sizeof( double ), 64 );
B = (double *)mkl_malloc( k*n*sizeof( double ), 64 ); B = (double *)malloc( k*n*sizeof( double ), 64 );
C = (double *)mkl_malloc( m*n*sizeof( double ), 64 ); C = (double *)malloc( m*n*sizeof( double ), 64 );
/*A = (double *)mkl_malloc( m*k*sizeof( double ), 64 );*/
/*B = (double *)mkl_malloc( k*n*sizeof( double ), 64 );*/
/*C = (double *)mkl_malloc( m*n*sizeof( double ), 64 );*/
for (i = 0; i < (m*k); i++) { for (i = 0; i < (m*k); i++) {
A[i] = (double)(i+1); A[i] = (double)(i+1);
...@@ -40,8 +43,8 @@ int main() ...@@ -40,8 +43,8 @@ int main()
nrm_send_progress(&ctxt, 1); nrm_send_progress(&ctxt, 1);
} }
nrm_fini(&ctxt); nrm_fini(&ctxt);
mkl_free(A); free(A);
mkl_free(B); free(B);
mkl_free(C); free(C);
return 0; return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment