Build: PASCAL=1 for the experimental sm_61/sm_60 (GTX 10-series, P40) build
Compiles CMAKE_CUDA_ARCHITECTURES=61 and passes -DSTRATA_EXPERIMENTAL_SM60=ON,
with an early error when nvcc is 13+ (which dropped sm_60/sm_70). Default
build is unchanged.
(cherry picked from commit 6afd3ff4d8)
This commit is contained in:
1 parent
6ae71dce2a
commit
4c64d1e33a
2 files changed
+12
No files matched your search
@@ -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),)
|
||||
|
||||
@@ -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
|
||||
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user