We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 38a142c + 29d12ac commit 46012f8Copy full SHA for 46012f8
gau2grid/c_pragma.py
@@ -9,7 +9,18 @@
9
10
#pragma once
11
12
-#if defined(__ICC) || defined(__INTEL_COMPILER)
+
13
+#if defined(__GG_NO_PRAGMA)
14
+ // Turn everything off if there are issues
15
16
+ #define ALIGNED_MALLOC(alignment, size) malloc(size)
17
+ #define ALIGNED_FREE(ptr) free(ptr)
18
+ #define ASSUME_ALIGNED(ptr, width)
19
20
+ #define PRAGMA_VECTORIZE
21
+ #define PRAGMA_RESTRICT
22
23
+#elif defined(__ICC) || defined(__INTEL_COMPILER)
24
// pragmas for Intel
25
26
#define ALIGNED_MALLOC(alignment, size) _mm_malloc(size, alignment)
@@ -28,7 +39,7 @@
28
39
29
40
#define PRAGMA_VECTORIZE __pragma(loop(ivdep))
30
41
#define PRAGMA_RESTRICT __restrict
31
-
42
32
43
#elif defined(__clang__)
33
44
// pragmas for Clang.
34
45
// Do this before GCC because clang also defines __GNUC__
0 commit comments