Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix iGPU CMakeFile tags #6695

Merged
merged 4 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ ExternalProject_Add(triton-server
-Daws-c-common_DIR:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/aws-sdk-cpp/${LIB_DIR}/aws-c-common/cmake
-Daws-checksums_DIR:PATH=${TRITON_THIRD_PARTY_INSTALL_PREFIX}/aws-sdk-cpp/${LIB_DIR}/aws-checksums/cmake
-Dopentelemetry-cpp_DIR:PATH=${_FINDPACKAGE_OPENTELEMETRY_CONFIG_DIR}
-DTRITON_IGPU_BUILD:BOOL=${TRITON_IGPU_BUILD}
-DTRITON_THIRD_PARTY_REPO_TAG:STRING=${TRITON_THIRD_PARTY_REPO_TAG}
-DTRITON_COMMON_REPO_TAG:STRING=${TRITON_COMMON_REPO_TAG}
-DTRITON_CORE_REPO_TAG:STRING=${TRITON_CORE_REPO_TAG}
Expand Down
8 changes: 3 additions & 5 deletions Dockerfile.QA
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,13 @@ RUN mkdir -p qa/L0_decoupled/models/repeat_int32/1 && \
mkdir -p qa/L0_decoupled/models/fan_repeat/1 && \
mkdir -p qa/L0_decoupled/models/sequence_repeat/1 && \
mkdir -p qa/L0_decoupled/models/repeat_square/1 && \
mkdir -p qa/L0_decoupled/models/nested_square/1
mkdir -p qa/L0_decoupled/models/nested_square/1 && \
mkdir -p qa/L0_grpc_state_cleanup/models/repeat_int32/1

RUN if [ "$IGPU_BUILD" == "0" ]; then \
cp backends/repeat/libtriton_repeat.so qa/L0_model_config && \
cp backends/repeat/libtriton_repeat.so qa/L0_decoupled/models/repeat_int32/1 && \
cp backends/repeat/libtriton_repeat.so qa/L0_grpc_state_cleanup/models/repeat_int32/1/. && \
cp backends/square/libtriton_square.so qa/L0_decoupled/models/square_int32/1; \
fi

Expand All @@ -264,10 +266,6 @@ RUN cp -r qa/L0_decoupled/models qa/L0_decoupled/python_models/ && \
cp /workspace/tritonbuild/python/examples/decoupled/square_config.pbtxt \
qa/L0_decoupled/python_models/square_int32/.

RUN mkdir -p qa/L0_grpc_state_cleanup/models/repeat_int32/1 && \
cp backends/repeat/libtriton_repeat.so \
qa/L0_grpc_state_cleanup/models/repeat_int32/1/.

RUN mkdir -p qa/L0_repoagent_checksum/models/identity_int32/1 && \
cp tritonbuild/identity/install/backends/identity/libtriton_identity.so \
qa/L0_repoagent_checksum/models/identity_int32/1/.
Expand Down
9 changes: 2 additions & 7 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,7 @@ def pytorch_cmake_args(images):
if "pytorch" in images:
image = images["pytorch"]
else:
image = "nvcr.io/nvidia/pytorch:{}-py3".format(
FLAGS.upstream_container_version
)
image = "nvcr.io/nvidia/pytorch:{}-py3".format(FLAGS.upstream_container_version)
cargs = [
cmake_backend_arg("pytorch", "TRITON_PYTORCH_DOCKER_IMAGE", None, image),
]
Expand Down Expand Up @@ -651,7 +649,6 @@ def onnxruntime_cmake_args(images, library_paths):
)
)


if target_platform() == "windows":
if "base" in images:
cargs.append(
Expand Down Expand Up @@ -767,9 +764,7 @@ def tensorflow_cmake_args(images, library_paths):
FLAGS.upstream_container_version
)
extra_args = [
cmake_backend_arg(
backend_name, "TRITON_TENSORFLOW_DOCKER_IMAGE", None, image
)
cmake_backend_arg(backend_name, "TRITON_TENSORFLOW_DOCKER_IMAGE", None, image)
]
return extra_args

Expand Down
4 changes: 1 addition & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,5 @@ endif() # NOT WIN32

# Currently unit tests do not build for windows...
if ( NOT WIN32)
if ( NOT EXISTS "/etc/ld.so.conf.d/nvidia-tegra.conf" )
add_subdirectory(test test)
endif()
add_subdirectory(test test)
endif() # NOT WIN32
2 changes: 1 addition & 1 deletion src/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ find_package(GTest REQUIRED)
#
# caffe2plan
#
if(${TRITON_ENABLE_TENSORRT})
if(${TRITON_ENABLE_TENSORRT} AND NOT ${TRITON_IGPU_BUILD})
Copy link
Contributor

@mc-nv mc-nv Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we going to feed our build.py with extra CMake argument.
I wasn't able from glance find it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @nv-kmcgill53 is right that we cannot build this part as it involves some peculiar linking. It used to be there I think.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mc-nv We are currently adding this to the build. See here

add_executable(caffe2plan caffe2plan.cc)
target_include_directories(caffe2plan PRIVATE ${CUDA_INCLUDE_DIRS})
target_link_libraries(
Expand Down
Loading