This pull request removes ROCm 5 code path and adds ROCm 7 runtime to library search list. ROCm 5 runtime is no longer shipped with AMD drivers, and ROCm 5 compiler is no longer compatible with newer driver versions. It also adds ROCm 7 runtime to the list of runtime libraries to look for. Starting later this year, ROCm 7 runtime will be bundled with the driver installer, and all future runtime fixes and improvements will target ROCm 7. Once ROCm 7 runtime is rolled out, ROCm 6 compiler will continue to work with it for about a year as a transitional measure. Beyond that, compatibility is not guaranteed. Pull Request: https://projects.blender.org/blender/blender/pulls/145279
37 lines
425 B
CMake
37 lines
425 B
CMake
# SPDX-FileCopyrightText: 2021 Blender Foundation
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
set(INC
|
|
.
|
|
include
|
|
)
|
|
|
|
set(INC_SYS
|
|
|
|
)
|
|
|
|
set(SRC
|
|
src/hipew.c
|
|
include/hipew.h
|
|
)
|
|
|
|
set(LIB
|
|
)
|
|
|
|
if(HIPRT_INCLUDE_DIR)
|
|
list(APPEND INC_SYS
|
|
${HIPRT_INCLUDE_DIR}
|
|
)
|
|
|
|
list(APPEND SRC
|
|
src/hiprtew.cc
|
|
|
|
include/hiprtew.h
|
|
src/util.h
|
|
)
|
|
endif()
|
|
|
|
|
|
blender_add_lib(extern_hipew "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|