Skip to content

Commit

Permalink
Merge pull request #85 from etaf/master
Browse files Browse the repository at this point in the history
Parallize data initailization.
  • Loading branch information
sharannarang authored Apr 4, 2018
2 parents 6a50a01 + 9fe447f commit 9ab7a74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/intel/convolution/mkl_conv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ OPTFLAGS = -O3
endif

CXX = icpc
CXXFLAGS = -Wall -std=c++11 $(OPTFLAGS) $(EXTRACXXFLAGS) -I../../../kernels
CXXFLAGS = -Wall -std=c++11 $(OPTFLAGS) $(EXTRACXXFLAGS) -fopenmp -I../../../kernels
LFLAGS = -lrt
OBJS = std_conv_bench.o

Expand Down
1 change: 1 addition & 0 deletions code/intel/convolution/mkl_conv/std_conv_bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ static inline void rand_fill(T *data, size_t size)
srand48(1);
initialized = true;
}
#pragma omp parallel for
for (size_t i = 0; i < size / sizeof(T); i++)
data[i] = static_cast<T>(drand48());
}
Expand Down

0 comments on commit 9ab7a74

Please sign in to comment.