Skip to content

Commit

Permalink
rename the override cfg file to envsetup_pre.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Mika Laitio <[email protected]>
  • Loading branch information
lamikr committed Jul 14, 2024
1 parent 1b4442a commit 4ebd6df
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ docs/examples/hipcc/hello_world/hello_world.o
docs/examples/opencl/check_opencl_caps/check_opencl_caps
docs/examples/opencl/hello_world/hello_world
packages
envsetup_pre.sh
3 changes: 2 additions & 1 deletion babs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
# See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
#

source binfo/user_config.sh
# allow enable doing some user specific extra actions before the build start
source ./envsetup_pre.sh

func_is_user_in_dev_kfd_render_group() {
if [ -e /dev/kfd ]; then
Expand Down
2 changes: 1 addition & 1 deletion binfo/build_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export ROCM_SDK_RELEASE_VERSION=1

# Set BABS version information
# Stored in /opt/rocm_sdk_xyz/.info/rocm_sdk_builder
export BABS_VERSION=2024_07_05_01
export BABS_VERSION=2024_07_14_01

# Get git hash used to build the system
# Stored in /opt/rocm_sdk_xyz/.info/rocm_sdk_builder
Expand Down
5 changes: 4 additions & 1 deletion binfo/envsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

SDK_ROOT_DIR="$PWD"

source binfo/user_config.sh
# allow enable doing some user specific extra actions before the build start
# like setting the INSTALL_DIR_PREFIX_SDK_ROOT
source ../envsetup_pre.sh

# check the linux distribution for the target triplet
export ROCM_TARGET_TRIPLED=x86_64-rocm-linux-gnu
Expand Down Expand Up @@ -33,6 +35,7 @@ echo "ROCM_TARGET_TRIPLED: ${ROCM_TARGET_TRIPLED}"
# set INSTALL_DIR_PREFIX_SDK_ROOT only if it not already set in the user environment variable or user_config.sh
INSTALL_DIR_PREFIX_SDK_ROOT="${INSTALL_DIR_PREFIX_SDK_ROOT:-/opt/rocm_sdk_${ROCM_MAJOR_VERSION}${ROCM_MINOR_VERSION}${ROCM_PATCH_VERSION}}"
export INSTALL_DIR_PREFIX_SDK_ROOT
echo "INSTALL_DIR_PREFIX_SDK_ROOT: $INSTALL_DIR_PREFIX_SDK_ROOT"

export ROCM_PATH=${INSTALL_DIR_PREFIX_SDK_ROOT}
export BUILD_RULE_ROOT_DIR=${SDK_ROOT_DIR}/binfo
Expand Down

0 comments on commit 4ebd6df

Please sign in to comment.