Skip to content

Commit

Permalink
Enable OpenJ9 CUDA support if the SDK is installed on aarch64
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart X Addison <sxa@redhat.com>
  • Loading branch information
sxa committed May 31, 2023
1 parent dc4453d commit f664b25
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build-farm/platform-specific-configurations/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,12 @@ if [ "${VARIANT}" == "${BUILD_VARIANT_OPENJ9}" ]
then
# OpenJ9 fetches the latest OpenSSL in their get_source.sh
export CONFIGURE_ARGS_FOR_ANY_PLATFORM="${CONFIGURE_ARGS_FOR_ANY_PLATFORM} --with-openssl=fetched"

if [ "${ARCHITECTURE}" == "ppc64le" ] || [ "${ARCHITECTURE}" == "x64" ]
then
CUDA_VERSION=9.0
CUDA_HOME=/usr/local/cuda-$CUDA_VERSION
if [ "${ARCHITECTURE}" == "aarch64" ]; then
echo PROBABLE JETSON NANO DEVELOPMENT ENVIRONMENT - Enabling CUDA ...
CUDA_HOME=/usr/local/cuda-10.2
else
CUDA_HOME=/usr/local/cuda-9.0
fi
if [ -f $CUDA_HOME/include/cuda.h ]
then
export CONFIGURE_ARGS_FOR_ANY_PLATFORM="${CONFIGURE_ARGS_FOR_ANY_PLATFORM} --enable-cuda --with-cuda=$CUDA_HOME"
Expand Down

0 comments on commit f664b25

Please sign in to comment.