Last active
February 21, 2018 19:54
-
-
Save emfomenk/bd8adda3a5c3c26fff1dce47418b67c9 to your computer and use it in GitHub Desktop.
Enable collapse omp clause on Windows for Intel Complier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 8846ac7035f275fc095d8e534aaf0549e41d6dff | |
Author: Fomenko, Evarist M <evarist.m.fomenko@intel.com> | |
Date: Wed Feb 21 18:49:03 2018 +0000 | |
win: use collapse pragma for intel compiler | |
diff --git a/src/common/mkldnn_thread.hpp b/src/common/mkldnn_thread.hpp | |
index d97c665c..228ce37c 100644 | |
--- a/src/common/mkldnn_thread.hpp | |
+++ b/src/common/mkldnn_thread.hpp | |
@@ -29,7 +29,7 @@ inline int omp_in_parallel() { return 0; } | |
#endif | |
/* VisualStudio still support omp 2.0 */ | |
-#ifdef _MSC_VER | |
+#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) | |
#define collapse(x) | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment