mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-04-23 01:48:56 +03:00

Too many changes to list, but broadly: * Remove Intel GPU support from the compiler * Add AMD GPU support to the compiler * Remove Intel GPU host code * Add AMD GPU host code * More device instructions. From 40 to 68 * More host functions. From 48 to 184 * Add proof of concept implementation of OptiX framework * Add minimal support of cuDNN, cuBLAS, cuSPARSE, cuFFT, NCCL, NVML * Improve ZLUDA launcher for Windows
33 lines
751 B
Bash
Vendored
33 lines
751 B
Bash
Vendored
#!/bin/sh
|
|
set -e
|
|
|
|
if [ $? -lt 1 ]
|
|
then
|
|
echo "Usage: $0 <version>" >&2
|
|
echo "Example: $0 3.9.1" >&2
|
|
exit 1
|
|
fi
|
|
|
|
VERSION=$1
|
|
|
|
# Dependencies (for Ubuntu):
|
|
# * wget
|
|
# * xz-utils
|
|
# * ninja-build
|
|
# * cmake
|
|
# * build-essential
|
|
# * python
|
|
|
|
wget http://releases.llvm.org/$VERSION/llvm-$VERSION.src.tar.xz
|
|
tar xJf llvm-$VERSION.src.tar.xz
|
|
mkdir build llvm-$VERSION
|
|
cd build
|
|
cmake -G Ninja ../llvm-$VERSION.src -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_ENABLE_ASSERTIONS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/llvm-$VERSION -DCMAKE_INSTALL_UTILS
|
|
cmake --build . --target install
|
|
cd ..
|
|
tar cJf llvm-$VERSION.linux.tar.xz /usr/local/llvm-$VERSION
|
|
|
|
# Additional flags for MSVC
|
|
# (CXX) /GL /Gy /Gw
|
|
# (link) /LTCG /OPT:REF,ICF
|