Skip to content

Commit

Permalink
use libnvjitlink package for libnvjitlink.so (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeepali authored Apr 12, 2024
1 parent fe143d7 commit bcfd271
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 0 additions & 5 deletions pytorch-2.1.2/recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,6 @@ then
find /usr/include -name cublas*.h -exec ln -s "{}" "$CONDA_PREFIX/include/" ';'
export CXXFLAGS="${CXXFLAGS} -I${PREFIX}/include -I${CUDA_HOME}/include -I${CONDA_PREFIX}/include"

# Create symlinks for livnvJitLink lib for cuda 12.2
if [[ $cudatoolkit == '12.2' ]]; then
find ${CUDA_HOME}/targets/${ARCH}-linux/lib/libnvJitLink.* -exec ln -s "{}" "$PREFIX/lib/" ';'
fi

# Temporarily disable TensorRT
#if [[ $PY_VER < 3.9 ]]
#then
Expand Down
6 changes: 4 additions & 2 deletions pytorch-2.1.2/recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ source:
# - 0104-onnx-tensorrt-TRT7.patch # [py<39]
- 0106-disable-SHM-and-CMA-for-tensorpipe.patch
# - 0107-fix-clock-gettime-undefind-error-for-sleef.patch
# - 0108-skip-half-test.patch # [x86_64]
- 0108-skip-half-test.patch # [ppc64le]

# 03xx - patch temporary to fix a problem that when fixed upstream can be removed
- 0309-fallback-to-cpu_kernel-with-VSX.patch # [ppc64le]
Expand Down Expand Up @@ -49,6 +49,7 @@ requirements:
- cudnn {{ cudnn }}
- nccl {{ nccl }}
- magma {{ magma }}
- libnvjitlink
#- tensorrt {{ tensorrt }} #[py<38]
{% endif %}

Expand Down Expand Up @@ -78,14 +79,15 @@ requirements:
- cudatoolkit {{ cudatoolkit }}
- cudnn {{ cudnn }}
- nccl {{ nccl }}
- libnvjitlink
#- tensorrt {{ tensorrt }} #[py<38]
{% endif %}

run_constrained:
- tensorboard {{ tensorboard }}

build:
number: 5
number: 6
{% if build_type == 'cpu' %}
string: {{ build_type }}_py{{ python | replace(".", "") }}_pb{{ protobuf | replace(".*", "")}}_{{ PKG_BUILDNUM }}
{% else %}
Expand Down

0 comments on commit bcfd271

Please sign in to comment.