Skip to content

Commit

Permalink
Merge pull request torch#286 from Moodstocks/openmp-warn
Browse files Browse the repository at this point in the history
SparseLinear.c: fix missing OpenMP include
  • Loading branch information
soumith committed Jun 6, 2015
2 parents fdd6659 + 465c7f1 commit b526153
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions generic/SparseLinear.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#define TH_GENERIC_FILE "generic/SparseLinear.c"
#else

#ifdef _OPENMP
#include <omp.h>
#endif

static int nn_(checkInput)(THTensor* t) {
return t->nDimension == 2 && t->size[1] == 2;
}
Expand Down

0 comments on commit b526153

Please sign in to comment.