xref: /aosp_15_r20/external/pytorch/test/inductor/cpp/test.sh (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1#!/bin/bash
2set -euo pipefail
3IFS=$'\n\t'
4
5cmake . -DATEN_INCLUDE:PATH=$(python -c "import torch; from torch.utils import cpp_extension; print(cpp_extension.include_paths()[0])")
6make
7./test/bin/test_cpp_prefix
8