#!/usr/bin/env bash

################################################################################
# GENERATED 2026-07-12 23:21:07 UTC
################################################################################
# source:  .ufb-resolved-config/config_rocm7.15.0a20260712_u2404_py3.12_7b62ebd.sh
# timestamp to reproduce: 2026-07-12T00:00:00Z
# command: ./utilities/resolve_config.sh --config .ufb-resolved-config/config_rocm7.15.0a20260712_u2404_py3.12_7b62ebd.sh --timestamp 2026-07-12T00:00:00Z
# Self-contained, fully-pinned config reconstructed from the resolved env.
# Ephemeral: regenerate with resolve_config.sh --config <src> [--timestamp <when>].
################################################################################

# =============================================================================
# ARCHITECTURE PARAMETERS
# =============================================================================
export GFX_COMPILATION_ARCH="${GFX_COMPILATION_ARCH:-gfx942;gfx950}"

# =============================================================================
# THEROCK VERSION PINS
# =============================================================================
export ROCM_RELEASE="${ROCM_RELEASE:-nightly}"
export BUILD_ROCM_VERSION="${BUILD_ROCM_VERSION:-7.15.0}"
export ROCM_SDK_VERSION="${ROCM_SDK_VERSION:-7.15.0a20260712}" # exact nightly resolved at generation time
export DEVICE_EXTRAS="${DEVICE_EXTRAS:-device-gfx942,device-gfx950}"

# =============================================================================
# BASE IMAGE PARAMETERS
# =============================================================================
export PYTHON_VERSION="${PYTHON_VERSION:-3.14}"
export BASE_IMAGE="${BASE_IMAGE:-ubuntu:24.04}"
export CMAKE_VERSION="${CMAKE_VERSION:-3.28.0}"

# =============================================================================
# COMMIT HASH PARAMETERS
# =============================================================================
export AITER_COMMIT_HASH="${AITER_COMMIT_HASH:-6af8b687480509d67f42a69bca7ed092c432e8dc}" # derived from vLLM 89a77b1 (Dockerfile.rocm_base AITER_BRANCH)
export APEX_COMMIT_HASH="${APEX_COMMIT_HASH:-f18052b57ca75623f39fa0235718b4bf8cc46a0b}"
export CAUSAL_CONV1D_COMMIT_HASH="${CAUSAL_CONV1D_COMMIT_HASH:-547dee6bab0dbe5c5954d7b8f0c813a0d5ff97c8}"
export DEEP_EP_COMMIT_HASH="${DEEP_EP_COMMIT_HASH:-0f63d3e97f0e43b47926179d7f3f304b3bc9554e}"
export DLRM_COMMIT_HASH="${DLRM_COMMIT_HASH:-73912938b01869cc76de52424aebb7c8488eb7d1}"
export FBGEMM_COMMIT_HASH="${FBGEMM_COMMIT_HASH:-a4a112c26ac01c78a86317cf54c69481478d95d2}"
export FLASH_ATTENTION_COMMIT_HASH="${FLASH_ATTENTION_COMMIT_HASH:-0e60e39473e8df549a20fb5353760f7a65b30e2d}"
export FLUX_BENCHMARK_COMMIT_HASH="${FLUX_BENCHMARK_COMMIT_HASH:-195c1ac7b44b273e961ca1448762f1a30ca4a823}"
export GROUPED_GEMM_COMMIT_HASH="${GROUPED_GEMM_COMMIT_HASH:-8a9b4381fb9977c5848bd673bf66d15f80fab0e3}"
export HALF_COMMIT_HASH="${HALF_COMMIT_HASH:-207ee58595a64b5c4a70df221f1e6e704b807811}"
export JAX_COMMIT_HASH="${JAX_COMMIT_HASH:-afbd1d3cd95cd0673033cebfaf5319b100d4b337}"
export LLVM_COMMIT_HASH="${LLVM_COMMIT_HASH:-38782d01c620b53f8e05116d81115bcbe0405477}"
export MAMBA_COMMIT_HASH="${MAMBA_COMMIT_HASH:-f1493ff6e9335160eb134eb67e59f8e4d9adefd6}"
export MAXTEXT_COMMIT_HASH="${MAXTEXT_COMMIT_HASH:-27c577a8199a124151c2e30309284238613b992f}"
export MEGATRON_LM_COMMIT_HASH="${MEGATRON_LM_COMMIT_HASH:-26912eb58c3f445763ea3dc25e55704359ad3e22}"
export MIGRAPHX_COMMIT_HASH="${MIGRAPHX_COMMIT_HASH:-4bcfe75b225e4e0b9387fe14645cb1c7216e6742}"
export MOONCAKE_COMMIT_HASH="${MOONCAKE_COMMIT_HASH:-a00f75742469d6cc408bc5393b73c501e92dc74a}"
export MORI_COMMIT_HASH="${MORI_COMMIT_HASH:-2d02c6a9841a80bc8656a9f5c73019ffea76b9b3}" # derived from vLLM 89a77b1 (Dockerfile.rocm_base MORI_BRANCH)
export ONNXRT_COMMIT_HASH="${ONNXRT_COMMIT_HASH:-ee69652dd1e05486ed37a6ee1da886ab74be7b89}"
export PRIMUS_COMMIT_HASH="${PRIMUS_COMMIT_HASH:-bfeac70cb47767c311d651e79f895ebedf1ab775}"
export PRIMUS_TURBO_COMMIT_HASH="${PRIMUS_TURBO_COMMIT_HASH:-0f9127f3da30d29f771753fdd12b1e4dd8252246}"
export PYTORCH_COMMIT_HASH="${PYTORCH_COMMIT_HASH:-20ec3b2fc5c105f259ae2146fa7725681a91dd66}"
export PYTORCH_AO_COMMIT_HASH="${PYTORCH_AO_COMMIT_HASH:-3c1065ca6ff2eb8a48262bd7c31ded2fffe0d15e}"
export PYTORCH_AUDIO_COMMIT_HASH="${PYTORCH_AUDIO_COMMIT_HASH:-27b7ebdebd2d2e4d34a2f5c05b0fb26efbd1da63}" # derived from PyTorch 2.10 (pytorch/audio release/2.10)
export PYTORCH_VISION_COMMIT_HASH="${PYTORCH_VISION_COMMIT_HASH:-8ac84ee75afb1c327902156b5336f56ad63b7e2f}" # derived from PyTorch 2.10 (pytorch/vision README torch<->torchvision table)
export RCCL_COMMIT_HASH="${RCCL_COMMIT_HASH:-ca43d35fdfff6d611b4f8c771cee6eebbed91667}"
export RCCL_TESTS_COMMIT_HASH="${RCCL_TESTS_COMMIT_HASH:-e0db601de84f0ded16b0b3299e839e7db7da1edc}"
export RIXL_COMMIT_HASH="${RIXL_COMMIT_HASH:-ec5b4d072db295975718e3e850ff7f6795959da7}"
export ROCMLIR_COMMIT_HASH="${ROCMLIR_COMMIT_HASH:-ea5b004d5d156b1b6e7881a22999bcb702edd217}"
export ROCM_LIBRARIES_COMMIT_HASH="${ROCM_LIBRARIES_COMMIT_HASH:-351f63e6df43e8e77f18c25fe133bad1cef05f1a}"
export BLAS_COMMIT_HASH=${ROCM_LIBRARIES_COMMIT_HASH}
export CK_COMMIT_HASH=${ROCM_LIBRARIES_COMMIT_HASH}
export MIOPEN_COMMIT_HASH=${ROCM_LIBRARIES_COMMIT_HASH}
export ROCM_RECIPES_COMMIT_HASH="${ROCM_RECIPES_COMMIT_HASH:-d7827046100ac0ed8167e16c53999baa126e760d}"
export ROCM_SYSTEMS_COMMIT_HASH="${ROCM_SYSTEMS_COMMIT_HASH:-769135f77f91c2848871c496ffa04e6230ea3674}"
export ROCPROFILER_REGISTER_COMMIT_HASH=${ROCM_SYSTEMS_COMMIT_HASH}
export ROCSHMEM_COMMIT_HASH="${ROCSHMEM_COMMIT_HASH:-b28a56bd54ccc581d05a439ffa466c3dacb33853}"
export ROCSHMEM_OMPI_COMMIT_HASH="${ROCSHMEM_OMPI_COMMIT_HASH:-1fabadc32e81090a01dcbb29da6cdf03cbec7105}"
export ROCSHMEM_UCX_COMMIT_HASH="${ROCSHMEM_UCX_COMMIT_HASH:-c51c3084a9bc6862f4a2bdfbe4146a94242c84ec}"
export RPD_COMMIT_HASH="${RPD_COMMIT_HASH:-fe84ff47a7884787e0d69e2c9f65192e1e4a0273}"
export TORCH_MIGRAPHX_COMMIT_HASH="${TORCH_MIGRAPHX_COMMIT_HASH:-ef3f901b7e76d96091c5a6b02966fcb3eafcb057}"
export TORCH_TITAN_COMMIT_HASH="${TORCH_TITAN_COMMIT_HASH:-6bb97c8b8619f18cb8378f3cdacb7176174e274e}"
export TORCH_TUNE_COMMIT_HASH="${TORCH_TUNE_COMMIT_HASH:-v0.5.0}"
export TRANSFORMER_ENGINE_COMMIT_HASH="${TRANSFORMER_ENGINE_COMMIT_HASH:-912fc5d3689487624714d8da6f2114c677898344}"
export TRITON_COMMIT_HASH="${TRITON_COMMIT_HASH:-4ed888920c5a0871957f1cf912e557bc79fbe56c}" # derived from PyTorch 20ec3b2 (.ci/docker/ci_commit_pins/triton.txt)
export TRITON_AO_COMMIT_HASH="${TRITON_AO_COMMIT_HASH:-d34f3b6c824df77d5c5788a2e7555b2398be4b79}" # derived from PyTorch 20ec3b2 (cmake/External/aotriton.cmake)
export VLLM_COMMIT_HASH="${VLLM_COMMIT_HASH:-89a77b10846fd96273cce78d86d2556ea582d26e}"
export XLA_COMMIT_HASH="${XLA_COMMIT_HASH:-88587552f2e8fa8d6965e4af11b0226829f390ae}"

# =============================================================================
# REPOSITORY URLS
# =============================================================================
export AITER_REPO="${AITER_REPO:-https://github.com/rocm/aiter}"
export APEX_REPO="${APEX_REPO:-https://github.com/ROCm/apex}"
export CAUSAL_CONV1D_REPO="${CAUSAL_CONV1D_REPO:-https://github.com/Dao-AILab/causal-conv1d}"
export DEEP_EP_REPO="${DEEP_EP_REPO:-https://github.com/ROCm/DeepEP}"
export DLRM_REPO="${DLRM_REPO:-https://github.com/AMD-AGI/DLRMBenchmark}"
export FBGEMM_REPO="${FBGEMM_REPO:-https://github.com/pytorch/FBGEMM}"
export FLASH_ATTENTION_REPO="${FLASH_ATTENTION_REPO:-https://github.com/ROCm/flash-attention}"
export FLUX_BENCHMARK_REPO="${FLUX_BENCHMARK_REPO:-https://github.com/ROCm/AMDiffusionBenchmark}"
export GROUPED_GEMM_REPO="${GROUPED_GEMM_REPO:-https://github.com/caaatch22/grouped_gemm}"
export HALF_REPO="${HALF_REPO:-https://github.com/ROCm/half}"
export JAX_REPO="${JAX_REPO:-https://github.com/ROCm/rocm-jax}"
export LLVM_REPO="${LLVM_REPO:-https://github.com/ROCm/llvm-project}"
export MAMBA_REPO="${MAMBA_REPO:-https://github.com/state-spaces/mamba}"
export MAXTEXT_REPO="${MAXTEXT_REPO:-https://github.com/rocm/maxtext}"
export MEGATRON_LM_REPO="${MEGATRON_LM_REPO:-https://github.com/ROCm/Megatron-LM}"
export MIGRAPHX_REPO="${MIGRAPHX_REPO:-https://github.com/ROCm/AMDMIGraphX}"
export MOONCAKE_REPO="${MOONCAKE_REPO:-https://github.com/kvcache-ai/Mooncake}"
export MORI_REPO="${MORI_REPO:-https://github.com/ROCm/mori}"
export ONNXRT_REPO="${ONNXRT_REPO:-https://github.com/ROCm/onnxruntime.git}"
export PRIMUS_REPO="${PRIMUS_REPO:-https://github.com/AMD-AGI/Primus}"
export PRIMUS_TURBO_REPO="${PRIMUS_TURBO_REPO:-https://github.com/AMD-AGI/Primus-Turbo}"
export PYTORCH_REPO="${PYTORCH_REPO:-https://github.com/ROCm/pytorch}"
export PYTORCH_AO_REPO="${PYTORCH_AO_REPO:-https://github.com/pytorch/ao}"
export PYTORCH_AUDIO_REPO="${PYTORCH_AUDIO_REPO:-https://github.com/pytorch/audio.git}"
export PYTORCH_VISION_REPO="${PYTORCH_VISION_REPO:-https://github.com/pytorch/vision}"
export RCCL_REPO="${RCCL_REPO:-https://github.com/ROCm/rccl}"
export RCCL_TESTS_REPO="${RCCL_TESTS_REPO:-https://github.com/ROCm/rccl-tests}"
export RIXL_REPO="${RIXL_REPO:-https://github.com/ROCm/RIXL}"
export ROCMLIR_REPO="${ROCMLIR_REPO:-https://github.com/ROCm/rocmlir}"
export ROCM_LIBRARIES_REPO="${ROCM_LIBRARIES_REPO:-https://github.com/ROCm/rocm-libraries}"
export BLAS_REPO=${ROCM_LIBRARIES_REPO}
export CK_REPO=${ROCM_LIBRARIES_REPO}
export MIOPEN_REPO=${ROCM_LIBRARIES_REPO}
export ROCM_RECIPES_REPO="${ROCM_RECIPES_REPO:-https://github.com/rocm/rocm-recipes}"
export ROCM_SYSTEMS_REPO="${ROCM_SYSTEMS_REPO:-https://github.com/ROCm/rocm-systems}"
export ROCPROFILER_REGISTER_REPO=${ROCM_SYSTEMS_REPO}
export ROCSHMEM_REPO="${ROCSHMEM_REPO:-https://github.com/ROCm/rocSHMEM}"
export ROCSHMEM_OMPI_REPO="${ROCSHMEM_OMPI_REPO:-https://github.com/ROCm/ompi.git}"
export ROCSHMEM_UCX_REPO="${ROCSHMEM_UCX_REPO:-https://github.com/ROCm/ucx}"
export RPD_REPO="${RPD_REPO:-https://github.com/ROCmSoftwarePlatform/rocmProfileData}"
export TORCH_MIGRAPHX_REPO="${TORCH_MIGRAPHX_REPO:-https://github.com/ROCm/torch_migraphx}"
export TORCH_TITAN_REPO="${TORCH_TITAN_REPO:-git@github.com:AMD-AGI/torchtitan.git}"
export TORCH_TUNE_REPO="${TORCH_TUNE_REPO:-https://github.com/AMD-AGI/torchtune}"
export TRANSFORMER_ENGINE_REPO="${TRANSFORMER_ENGINE_REPO:-https://github.com/ROCm/TransformerEngine}"
export TRITON_REPO="${TRITON_REPO:-https://github.com/ROCm/triton}"
export TRITON_AO_REPO="${TRITON_AO_REPO:-https://github.com/ROCm/aotriton}"
export VLLM_REPO="${VLLM_REPO:-https://github.com/vllm-project/vllm}"
export XLA_REPO="${XLA_REPO:-https://github.com/ROCm/xla}"

# =============================================================================
# TEST SUITE
# =============================================================================
export TEST_REF="${TEST_REF:-develop}"
export TEST_REPO="${TEST_REPO:-https://github.com/ROCm/MAD}"

# =============================================================================
# BUILD OVERRIDES
# =============================================================================
export BUILD_THEROCK_APEX=1
export BUILD_THEROCK_JAX=0
export BUILD_THEROCK_PYTORCH=1
export BUILD_THEROCK_PYTORCH_AUDIO=1
export BUILD_THEROCK_PYTORCH_VISION=1
export BUILD_THEROCK_TRITON=1
