sglang_v0.5.2/pytorch_2.8.0/test/inductor/cpp/test.sh

8 lines
211 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
cmake . -DATEN_INCLUDE:PATH=$(python -c "import torch; from torch.utils import cpp_extension; print(cpp_extension.include_paths()[0])")
make
./test/bin/test_cpp_prefix