1
0
Fork 0
llvm-premerge-checks/containers/buildbot-mlir-nvidia/test.sh

10 lines
317 B
Bash
Raw Normal View History

2020-03-19 14:20:33 +01:00
#!/bin/bash
set -eux
cd /tests/llvm-project
mkdir -p build
cd build
cmake -G Ninja ../llvm -DLLVM_BUILD_EXAMPLES=ON -DLLVM_ENABLE_CXX1Y=Y -DLLVM_TARGETS_TO_BUILD="host;NVPTX" -DLLVM_ENABLE_PROJECTS=mlir -DMLIR_CUDA_RUNNER_ENABLED=1 -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc
cmake --build . --target check-mlir