mirror of
https://github.com/exaloop/codon.git
synced 2025-06-03 15:03:52 +08:00
* Upgrade to LLVM 15 (WIP) * Call `setPresplitCoroutine()` on coro LLVM funcs * Use new pass manager * Update deps * Update docs * Fix exceptions on M1 * Add libunwind * Use Orc and JITLink for "codon run" * JITLink integration * Fix callback * Fix strbuf, fix GC root registration * Fix test init * Fix llvm function * Fix pickle, float atomics * Add TargetLibraryAnalysis * Use new LLVM pass manager in GPU codegen * Fix libunwind linking * Fix libunwind * Fix GPU passes * Don't link libunwind explicitly * Bump version * Update plugins for new pass manager * Fix bash error * Fix GPU GV extraction * Move simd module to experimental folder * Update file read * Add benchmark programs * Add dynamic tuple * Fix parser tuple slicing bug * Make DynamicTuple interoperable with Tuple * Fix DynamicTuple GPU interop * Dockerize builds * Simplify CMake * Revert "Simplify CMake" This reverts commit 08d2920349b5033750b54b4fb7aaa9bac264b750. Co-authored-by: Ibrahim Numanagić <ibrahimpasa@gmail.com>
39 lines
1.6 KiB
Docker
39 lines
1.6 KiB
Docker
FROM codon:llvm as codon-llvm
|
|
|
|
FROM nvidia/cuda:11.8.0-devel-centos7
|
|
RUN yum -y update
|
|
RUN yum -y install centos-release-scl-rh epel-release
|
|
RUN yum -y install \
|
|
ninja-build libuuid-devel openssl openssl-devel \
|
|
libsodium-devel cmake3 zlib-devel git patch perl-Data-Dumper
|
|
COPY --from=codon-llvm /opt/llvm-codon /opt/llvm-codon
|
|
RUN mkdir -p /github/codon
|
|
COPY cmake /github/codon/cmake
|
|
COPY codon /github/codon/codon
|
|
COPY docs /github/codon/docs
|
|
COPY extra /github/codon/extra
|
|
COPY stdlib /github/codon/stdlib
|
|
COPY test /github/codon/test
|
|
COPY CMakeLists.txt /github/codon
|
|
RUN cmake3 -S /github/codon -B /github/codon/build \
|
|
-G Ninja \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_C_COMPILER=/opt/llvm-codon/bin/clang \
|
|
-DCMAKE_CXX_COMPILER=/opt/llvm-codon/bin/clang++ \
|
|
-DLLVM_DIR=/opt/llvm-codon/lib/cmake/llvm \
|
|
-DCODON_GPU=ON \
|
|
-DCODON_JUPYTER=ON \
|
|
-DOPENSSL_ROOT_DIR=$(openssl version -d | cut -d' ' -f2 | tr -d '"') \
|
|
-DOPENSSL_CRYPTO_LIBRARY=/usr/lib64/libssl.so \
|
|
-DCMAKE_INSTALL_PREFIX=/opt/codon \
|
|
-DXEUS_USE_DYNAMIC_UUID=ON
|
|
RUN LD_LIBRARY_PATH=/usr/local/cuda-11.8/compat:${LD_LIBRARY_PATH} cmake3 --build /github/codon/build
|
|
# TODO: fix install RUN cmake3 --install /github/codon/build
|
|
RUN mkdir -p /opt/codon/bin
|
|
RUN cp /github/codon/build/codon /opt/codon/bin/
|
|
RUN mkdir -p /opt/codon/lib/codon
|
|
RUN cp -r /github/codon/build/lib*.so /opt/codon/lib/codon/
|
|
RUN cp -r /github/codon/stdlib /opt/codon/lib/codon/
|
|
RUN cd /github/codon && tar cjvf /opt/codon-$(git rev-parse --short HEAD).tar.bz2 -C /opt codon/
|
|
CMD cp /opt/codon-*.tar.bz2 /mnt/
|