-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mergeback 6.0 fixes into develop (#306)
* Separate gfx942 specific code (#289) Co-authored-by: Stanley Tsang <[email protected]> * Split rocm-cmake dependency out before hip include (#293) * Split rocm-cmake dependency out before hip include * Update comments * Fix cpp-check reported issues Fixed a number of issues that static analysis picked up: - Made some functions const since they don't modify member state - Made some parameters const, since they're never modified - Fixes for several benchmark/test functions - Removed unused variable declarations - Added missing input data transfer from host to device - Added some member variables to constructor initializer list - Added override keyword in several places - Fixed up item placeholders in some printf statements * Fix cpp-check reported issues * Removed host to data transfer from memcpy benchmark. Since this benchmark only tests memcpy performance between device buffers, we don't really need to copy data into these from the host. * update googlebenchmark version (#302) * Avoid a segmentation fault when clearing cached blocks (#297) (#305) Co-authored-by: Tom Benson <[email protected]> --------- Co-authored-by: Eiden Yoshida <[email protected]> Co-authored-by: Lauren Wrubleski <[email protected]> Co-authored-by: Wayne Franz <[email protected]> Co-authored-by: Tom Benson <[email protected]>
- Loading branch information
1 parent
3952cf2
commit 2276f32
Showing
5 changed files
with
76 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# MIT License | ||
# | ||
# Copyright (c) 2017-2023 Advanced Micro Devices, Inc. All rights reserved. | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
# in the Software without restriction, including without limitation the rights | ||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
# copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included in all | ||
# copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
# SOFTWARE. | ||
|
||
if(NOT DEPENDENCIES_FORCE_DOWNLOAD) | ||
find_package(ROCM 0.7.3 CONFIG QUIET PATHS "${ROCM_ROOT}") | ||
endif() | ||
if(NOT ROCM_FOUND) | ||
message(STATUS "ROCm CMake not found. Fetching...") | ||
# We don't really want to consume the build and test targets of ROCm CMake. | ||
# CMake 3.18 allows omitting them, even though there's a CMakeLists.txt in source root. | ||
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.18) | ||
set(SOURCE_SUBDIR_ARG SOURCE_SUBDIR "DISABLE ADDING TO BUILD") | ||
else() | ||
set(SOURCE_SUBDIR_ARG) | ||
endif() | ||
FetchContent_Declare( | ||
rocm-cmake | ||
URL https://github.com/RadeonOpenCompute/rocm-cmake/archive/refs/tags/rocm-5.2.0.tar.gz | ||
${SOURCE_SUBDIR_ARG} | ||
) | ||
FetchContent_MakeAvailable(rocm-cmake) | ||
find_package(ROCM CONFIG REQUIRED NO_DEFAULT_PATH PATHS "${rocm-cmake_SOURCE_DIR}") | ||
else() | ||
find_package(ROCM 0.7.3 CONFIG REQUIRED PATHS "${ROCM_ROOT}") | ||
endif() | ||
|
||
include(ROCMSetupVersion) | ||
include(ROCMCreatePackage) | ||
include(ROCMInstallTargets) | ||
include(ROCMPackageConfigHelpers) | ||
include(ROCMInstallSymlinks) | ||
include(ROCMHeaderWrapper) | ||
include(ROCMCheckTargetIds) | ||
include(ROCMClients) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters