diff --git a/Makefile b/Makefile index 87320c7..9634883 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,12 @@ BUILD_DIR ?= build # STRATA_EXPERIMENTAL_SM60, which needs a CUDA 12.x toolkit (13 dropped sm_61). `make build CUDA_ARCHS=86` builds for # one card and is several times faster. An arch the installed nvcc cannot compile is dropped with a note. CUDA_ARCHS ?= 61;75;86;89 +# PASCAL=1 is our shorthand for CUDA_ARCHS=61 (GTX 10-series, Tesla P40); the arch check above then turns on +# STRATA_EXPERIMENTAL_SM60 by itself, so the shorthand needs no extra CMake flag. +PASCAL ?= +ifeq ($(PASCAL),1) +CUDA_ARCHS := 61 +endif # nvcc: on PATH, else the toolkit's usual place (RunPod images and distro packages differ). NVCC=/path overrides. NVCC ?= $(or $(shell command -v nvcc 2>/dev/null),$(wildcard /usr/local/cuda/bin/nvcc)) ifeq ($(NVCC),) diff --git a/README.md b/README.md index ec186ab..83f95d4 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,12 @@ make test make build CUDA_ARCHS=89 # 6m40 on 16 cores, 557 MB, 0 warnings ``` +Pascal is an experimental, community build: `make build PASCAL=1` compiles sm_61 (GTX 10-series, Tesla P40; +`CUDA_ARCHS=60` for P100) and turns on the engine's `STRATA_EXPERIMENTAL_SM60` path. It needs a CUDA 12.x +toolkit (CUDA 13 dropped sm_60/sm_70) and is outside the validated configuration above: no tensor cores, so +expect the portable FP32 attention path and much lower throughput, and a card under 24 GB leans on the expert +cache. + ## Run ```