Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the compilation for power pc #288

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,21 @@ include $(LEGATE_DIR)/share/legate/config.mk

LIBNAME = libcunumeric

ARCH_NAME = $(shell uname -m)
ifneq (,$(findstring ppc,$(ARCH_NAME)))
CPU_ARCH = ppc
else ifneq (,$(findstring x86,$(ARCH_NAME)))
CPU_ARCH = x86
else
$(error Unsupported arch $(ARCH_NAME), aborting build)
endif

CC_FLAGS ?=
CC_FLAGS += -I. -I$(OPENBLAS_PATH)/include -I$(TBLIS_PATH)/include -I$(THRUST_PATH)
CC_FLAGS += -DTHRUST_HOST_SYSTEM=THRUST_HOST_SYSTEM_CPP -DTHRUST_DEVICE_SYSTEM=THRUST_DEVICE_SYSTEM_OMP
ifeq ($(strip $(CPU_ARCH)),ppc)
CC_FLAGS += -DNO_WARN_X86_INTRINSICS
endif

LD_FLAGS ?=
LD_FLAGS += -L$(OPENBLAS_PATH)/lib -l$(OPENBLAS_LIBNAME) -Wl,-rpath,$(OPENBLAS_PATH)/lib
Expand Down