File tree Expand file tree Collapse file tree 10 files changed +31
-9
lines changed Expand file tree Collapse file tree 10 files changed +31
-9
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ install_ubuntu() {
1515 elif [[ " $UBUNTU_VERSION " == " 22.04" * ]]; then
1616 cmake3=" cmake=3.22*"
1717 maybe_libiomp_dev=" "
18+ elif [[ " $UBUNTU_VERSION " == " 24.04" * ]]; then
19+ cmake3=" cmake=3.28*"
20+ maybe_libiomp_dev=" "
1821 else
1922 cmake3=" cmake=3.5*"
2023 maybe_libiomp_dev=" libiomp-dev"
Original file line number Diff line number Diff line change 118118 conda_install_through_forge libstdcxx-ng=12
119119 fi
120120
121+ if [ " $ANACONDA_PYTHON_VERSION " = " 3.12" ] || [ " $UBUNTU_VERSION " == " 24.04" * ] ; then
122+ conda_install_through_forge libstdcxx-ng=14
123+ fi
124+
121125 # Install some other packages, including those needed for Python test reporting
122126 pip_install -r /opt/conda/requirements-ci.txt
123127
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ install_ubuntu() {
1919 # gpg-agent is not available by default on 20.04
2020 apt-get install -y --no-install-recommends gpg-agent
2121 fi
22- if [[ $UBUNTU_VERSION == 22.04 ]]; then
22+ if [[ $UBUNTU_VERSION == 22.04 ]] || [[ $UBUNTU_VERSION == 24.04 ]] ; then
2323 apt-get install -y --no-install-recommends gpg-agent
2424 echo -e ' Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' \
2525 | sudo tee /etc/apt/preferences.d/rocm-pin-600
Original file line number Diff line number Diff line change 22
33set -ex
44
5+ # Since version 24 the system ships with user 'ubuntu' that has id 1000
6+ # We need a work-around to enable id 1000 usage for this script
7+ if [[ $UBUNTU_VERSION == 24.04 ]]; then
8+ # touch is used to disable harmless error message
9+ touch /var/mail/ubuntu && chown ubuntu /var/mail/ubuntu && userdel -r ubuntu
10+ fi
11+
512# Mirror jenkins user in container
613# jenkins user as ec2-user should have the same user-id
714echo " jenkins:x:1000:1000::/var/lib/jenkins:" >> /etc/passwd
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ sympy==1.12.1
2222#test that import:
2323
2424coremltools==5.0b5 ; python_version < "3.12"
25+ coremltools==7.2 ; python_version == "3.12"
2526#Description: Apple framework for ML integration
2627#Pinned versions: 5.0b5
2728#test that import:
@@ -64,6 +65,7 @@ lark==0.12.0
6465#test that import:
6566
6667librosa>=0.6.2 ; python_version < "3.11"
68+ librosa==0.10.2 ; python_version == "3.12"
6769#Description: A python package for music and audio analysis
6870#Pinned versions: >=0.6.2
6971#test that import: test_spectral_ops.py
@@ -112,6 +114,7 @@ networkx==2.8.8
112114numba==0.49.0 ; python_version < "3.9"
113115numba==0.54.1 ; python_version == "3.9"
114116numba==0.55.2 ; python_version == "3.10"
117+ numba==0.60.0 ; python_version == "3.12"
115118#Description: Just-In-Time Compiler for Numerical Functions
116119#Pinned versions: 0.54.1, 0.49.0, <=0.49.1
117120#test that import: test_numba_integration.py
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ endif()
4444# ---[ Dependency of c10_hip
4545target_link_libraries (c10_hip PUBLIC c10)
4646
47- target_link_libraries (c10_hip PUBLIC ${PYTORCH_HIP_LIBRARIES} )
47+ target_link_libraries (c10_hip PUBLIC ${PYTORCH_HIP_LIBRARIES} ${ROCM_HSART_LIB } )
4848
4949target_include_directories (
5050 c10_hip PUBLIC
Original file line number Diff line number Diff line change @@ -723,7 +723,7 @@ if(USE_ROCM)
723723 # caffe2_nvrtc's stubs to driver APIs are useful for HIP.
724724 # See NOTE [ ATen NVRTC Stub and HIP ]
725725 add_library (caffe2_nvrtc SHARED ${ATen_NVRTC_STUB_SRCS} )
726- target_link_libraries (caffe2_nvrtc ${PYTORCH_HIP_LIBRARIES} ${ROCM_HIPRTC_LIB} )
726+ target_link_libraries (caffe2_nvrtc ${PYTORCH_HIP_LIBRARIES} ${ROCM_HIPRTC_LIB} ${ROCM_HSART_LIB} )
727727 target_include_directories (caffe2_nvrtc PRIVATE ${CMAKE_BINARY_DIR} )
728728 target_compile_definitions (caffe2_nvrtc PRIVATE USE_ROCM __HIP_PLATFORM_AMD__)
729729 install (TARGETS caffe2_nvrtc DESTINATION "${TORCH_INSTALL_LIB_DIR} " )
@@ -1451,6 +1451,7 @@ target_link_libraries(torch_cpu PUBLIC c10)
14511451target_link_libraries (torch_cpu PUBLIC ${Caffe2_PUBLIC_DEPENDENCY_LIBS} )
14521452target_link_libraries (torch_cpu PRIVATE ${Caffe2_DEPENDENCY_LIBS} )
14531453target_link_libraries (torch_cpu PRIVATE ${Caffe2_DEPENDENCY_WHOLE_LINK_LIBS} )
1454+ target_link_libraries (torch_cpu PUBLIC ${ROCM_HSART_LIB} )
14541455if (USE_MPI)
14551456 target_link_libraries (torch_cpu PRIVATE MPI::MPI_CXX)
14561457endif ()
Original file line number Diff line number Diff line change @@ -1332,11 +1332,8 @@ if(USE_ROCM)
13321332 hip_include_directories(${Caffe2_HIP_INCLUDE} )
13331333
13341334 set (Caffe2_PUBLIC_HIP_DEPENDENCY_LIBS
1335- ${PYTORCH_HIP_LIBRARIES} ${PYTORCH_MIOPEN_LIBRARIES} ${hipcub_LIBRARIES} ${ROCM_HIPRTC_LIB} ${ROCM_ROCTX_LIB} )
1336- if (ROCM_VERSION_DEV VERSION_GREATER_EQUAL "5.7.0" )
1337- list (APPEND Caffe2_PUBLIC_HIP_DEPENDENCY_LIBS ${hipblaslt_LIBRARIES} )
1338- endif ()
1339-
1335+ ${PYTORCH_HIP_LIBRARIES} ${PYTORCH_MIOPEN_LIBRARIES} ${hipcub_LIBRARIES} ${ROCM_HIPRTC_LIB} ${ROCM_ROCTX_LIB} ${ROCM_HSART_LIB} )
1336+ list (APPEND Caffe2_PUBLIC_HIP_DEPENDENCY_LIBS ${hipblaslt_LIBRARIES} )
13401337 list (APPEND Caffe2_PUBLIC_HIP_DEPENDENCY_LIBS
13411338 roc::hipblas hip::hipfft hip::hiprand roc::hipsparse roc::hipsolver)
13421339
Original file line number Diff line number Diff line change @@ -190,6 +190,8 @@ if(HIP_FOUND)
190190 find_library (ROCM_HIPRTC_LIB hiprtc HINTS ${ROCM_PATH} /lib)
191191 # roctx is part of roctracer
192192 find_library (ROCM_ROCTX_LIB roctx64 HINTS ${ROCM_PATH} /lib)
193+ # HSA runtime lib
194+ find_library (ROCM_HSART_LIB hsa-runtime64 HINTS ${ROCM_PATH} /lib)
193195
194196 if (ROCM_VERSION_DEV VERSION_GREATER_EQUAL "5.7.0" )
195197 # check whether hipblaslt is using its own datatype
Original file line number Diff line number Diff line change @@ -60,7 +60,12 @@ if(UNIX AND NOT APPLE)
6060endif ()
6161
6262add_executable (torch_shm_manager manager.cpp)
63- target_link_libraries (torch_shm_manager PRIVATE shm c10)
63+ if (BUILD_LIBTORCHLESS)
64+ target_link_libraries (torch_shm_manager PRIVATE shm ${C10_LIB} )
65+ else ()
66+ # we need to link directly to c10 here otherwise we miss symbols
67+ target_link_libraries (torch_shm_manager PRIVATE shm c10 ${ROCM_HSART_LIB} )
68+ endif ()
6469set_target_properties (torch_shm_manager PROPERTIES
6570 INSTALL_RPATH "${_rpath_portable_origin} /../lib" )
6671
You can’t perform that action at this time.
0 commit comments