#!/usr/bin/env bash # Builds and runs test_host.c (the device-free rules of host.c) against the placeholder pack. No GPU is touched. set -euo pipefail cd "$(dirname "$0")" P="../proto-cuda/packs/igneum-devnet-v4-epoch0" case "$(uname -s)" in Darwin) cc -std=c99 -O1 -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-function -I "$P" -DIGNEUM_KERNEL_PATH='"kernel_bound.cl"' -o test_host test_host.c -framework OpenCL ;; *) cc -std=c99 -O1 -Wall -Wextra -Wno-unused-function -I "$P" -DIGNEUM_KERNEL_PATH='"kernel_bound.cl"' -o test_host test_host.c -lOpenCL -ldl ;; esac ./test_host