Skip to content

Commit

Permalink
Modify macro to please clang compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlucf22 authored and nicolasbock committed Jan 26, 2023
1 parent 213ab46 commit 6845d4f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@
/** Number of outer loop iterations for offload code
*/

#define BML_OFFLOAD_CHUNKS (defined(INTEL_SDK) || defined(CRAY_SDK) || defined(__IBMC__) || defined(__ibmxl__))
#if (defined(INTEL_SDK) || defined(CRAY_SDK) || defined(__IBMC__) || defined(__ibmxl__))
#define BML_OFFLOAD_CHUNKS 1
#else
#define BML_OFFLOAD_CHUNKS 0
#endif

#ifdef BML_OFFLOAD_CHUNKS
#ifndef BML_OFFLOAD_NUM_CHUNKS
Expand Down

0 comments on commit 6845d4f

Please sign in to comment.