Skip to content

Commit

Permalink
Reactivate conda environment to ensure openjdk activation script sets…
Browse files Browse the repository at this point in the history
… JAVA_HOME.
  • Loading branch information
bdice committed Jan 7, 2022
1 parent e26477d commit 630b584
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ci/gpu/java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ gpuci_mamba_retry install -y \
"ucx-py=${UCX_PY_VERSION}" \
"openjdk=8.*" \
"maven"
# "mamba install openjdk" adds an activation script to set JAVA_HOME but this is
# not triggered on installation. Re-activating the conda environment will set
# this environment variable so that CMake can find JNI.
conda activate rapids

# https://docs.rapids.ai/maintainers/depmgmt/
# gpuci_conda_retry remove --force rapids-build-env rapids-notebook-env
Expand Down
1 change: 0 additions & 1 deletion java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@
<exec dir="${native.build.path}"
failonerror="true"
executable="cmake">
<arg value="--trace-expand"/>
<arg value="${basedir}/src/main/native"/>
<arg value="-DCUDA_STATIC_RUNTIME=${CUDA_STATIC_RUNTIME}" />
<arg value="-DPER_THREAD_DEFAULT_STREAM=${PER_THREAD_DEFAULT_STREAM}" />
Expand Down

0 comments on commit 630b584

Please sign in to comment.