how can i build with envd for cmake dockerfile command #1747
Closed
Xiaoaier-Z-L
started this conversation in
General
Replies: 1 comment 5 replies
-
You can try: fast_transformer_cmd = """
CUDAFLAGS="-include stdio.h" cmake
-D CMAKE_EXPORT_COMPILE_COMMANDS=1
-D CMAKE_BUILD_TYPE=Release
-D ENABLE_FP8=OFF
-D CMAKE_INSTALL_PREFIX=/opt/tritonserver
-D TRITON_COMMON_REPO_TAG="r${NVIDIA_TRITON_SERVER_VERSION}"
-D TRITON_CORE_REPO_TAG="r${NVIDIA_TRITON_SERVER_VERSION}"
-D TRITON_BACKEND_REPO_TAG="r${NVIDIA_TRITON_SERVER_VERSION}"
.. &&
cd _deps/repo-ft-src/ &&
git log | head -n 3 2>&1 | tee /workspace/build/fastertransformer_backend/FT_version.txt &&
cd /workspace/build/fastertransformer_backend/build &&
CUDAFLAGS="-include stdio.h" make -O -j"$(grep -c ^processor /proc/cpuinfo)" install &&
rm /workspace/build/fastertransformer_backend/build/bin/_example -rf &&
rm /workspace/build/fastertransformer_backend/build/lib/libBackend.so -rf
"""
def build():
run(commands=[fast_transformer_cmd]) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
one example dockerfile command:
RUN CUDAFLAGS="-include stdio.h" cmake
-D CMAKE_EXPORT_COMPILE_COMMANDS=1
-D CMAKE_BUILD_TYPE=Release
-D ENABLE_FP8=OFF
-D CMAKE_INSTALL_PREFIX=/opt/tritonserver
-D TRITON_COMMON_REPO_TAG="r${NVIDIA_TRITON_SERVER_VERSION}"
-D TRITON_CORE_REPO_TAG="r${NVIDIA_TRITON_SERVER_VERSION}"
-D TRITON_BACKEND_REPO_TAG="r${NVIDIA_TRITON_SERVER_VERSION}"
.. &&
cd _deps/repo-ft-src/ &&
git log | head -n 3 2>&1 | tee /workspace/build/fastertransformer_backend/FT_version.txt &&
cd /workspace/build/fastertransformer_backend/build &&
CUDAFLAGS="-include stdio.h" make -O -j"$(grep -c ^processor /proc/cpuinfo)" install &&
rm /workspace/build/fastertransformer_backend/build/bin/_example -rf &&
rm /workspace/build/fastertransformer_backend/build/lib/libBackend.so -rf
Beta Was this translation helpful? Give feedback.
All reactions