diff --git a/build.sh b/build.sh new file mode 100644 index 000000000000..138ff680adc3 --- /dev/null +++ b/build.sh @@ -0,0 +1,5 @@ +apt update +apt install llvm clang +rm -rf build && mkdir build && cd build +cp ../cmake/config.cmake . +cmake .. && cmake --build . --parallel $(nproc) diff --git a/cmake/config.cmake b/cmake/config.cmake index ec72fc383e79..29d3d3d2b34b 100644 --- a/cmake/config.cmake +++ b/cmake/config.cmake @@ -46,7 +46,7 @@ # - ON: enable CUDA with cmake's auto search # - OFF: disable CUDA # - /path/to/cuda: use specific path to cuda toolkit -set(USE_CUDA OFF) +set(USE_CUDA ON) # Whether to enable NCCL support: # - ON: enable NCCL with cmake's auto search @@ -158,7 +158,7 @@ set(USE_PROFILER ON) # - OFF: disable llvm, note this will disable CPU codegen # which is needed for most cases # - /path/to/llvm-config: enable specific LLVM when multiple llvm-dev is available. -set(USE_LLVM "/projs/AE/dongshouyang/clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04/bin/llvm-config") +set(USE_LLVM ON) # Whether use MLIR to help analyze, requires USE_LLVM is enabled # Possible values: ON/OFF