mirror of
https://github.com/AdaCore/cuda.git
synced 2026-02-12 13:05:54 -08:00
Fix Makefile dependencies
Device-side build artifacts need to be generated before compilation of the host side starts. Before the patch, the Makefile rules failed to meet that requirement, and things only worked when running make with a single job, i.e. with -j1. This patch tweaks the Makefile rules so that make is aware of the fact that the host side should only be compiled after the device side.
This commit is contained in:
@@ -5,9 +5,9 @@ include $(SELF_DIR)Makefile.env
|
||||
|
||||
CUDA_HOST=x86_64-linux
|
||||
|
||||
gnatcuda: device host
|
||||
gnatcuda: host
|
||||
|
||||
host:
|
||||
host: device
|
||||
# gprbuild currently doesn't pass ADA_INCLUDE_PATH to gnatbind. We need to
|
||||
# set that manually so that cuda.ads can be found
|
||||
export ADA_INCLUDE_PATH="$(SELF_DIR)api/host/cuda_raw_binding:$(SELF_DIR)/api/host/cuda_api:$(SELF_DIR)api/cuda_internal" ; \
|
||||
|
||||
Reference in New Issue
Block a user