Skip to content

Commit 9194db1

Browse files
committed
Change c++ files to import openmp when defined
1 parent c4cd235 commit 9194db1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

kmsr/cpp/heuristic.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#include <omp.h>
1+
#ifdef _OPENMP
2+
#include <omp.h>
3+
#endif
24

35
#include <iostream>
46
#include <random>

kmsr/cpp/k_MSR.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#include <omp.h>
1+
#ifdef _OPENMP
2+
#include <omp.h>
3+
#endif
24

35
#include <random>
46

0 commit comments

Comments
 (0)