Skip to content

Commit b774ff3

Browse files
committed
paths to include for cuda and ze
1 parent bf43bd3 commit b774ff3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src_c/IMB_gpu_common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ For more documentation than found here, see
6464
#include <stdlib.h>
6565
#include <dlfcn.h>
6666
#include "IMB_comm_info.h"
67-
#if defined(ZE_INCLUDE_DIR)
67+
#ifdef ZE_INCLUDE_DIR
6868
#include "IMB_ze.h"
6969
#endif
70-
#if defined(CUDA_INCLUDE_DIR)
70+
#ifdef CUDA_INCLUDE_DIR
7171
#include "IMB_cuda.h"
7272
#endif
7373

src_cpp/MPI1/Makefile.MPI1.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ override CPPFLAGS += -DGPU_ENABLE -ldl
9393
ifdef CUDA_INCLUDE_DIR
9494
override C_SRC += $(C_SRC_DIR)/IMB_cuda.c \
9595
$(C_SRC_DIR)/IMB_cuda_api.c
96-
override CPPFLAGS += -I${CUDA_INCLUDE_DIR}
96+
override CPPFLAGS += -I${CUDA_INCLUDE_DIR} -DCUDA_INCLUDE_DIR
9797
endif
9898
ifdef ZE_INCLUDE_DIR
9999
override C_SRC += $(C_SRC_DIR)/IMB_ze.c \
100100
$(C_SRC_DIR)/IMB_ze_api.c
101-
override CPPFLAGS += -I${ZE_INCLUDE_DIR}
101+
override CPPFLAGS += -I${ZE_INCLUDE_DIR} -DZE_INCLUDE_DIR
102102
endif
103103
ifndef CUDA_INCLUDE_DIR
104104
ifndef ZE_INCLUDE_DIR

0 commit comments

Comments
 (0)