Skip to content

Commit 2a91cef

Browse files
committedApr 27, 2023
Update source code for RMV v1.6 release
·
v1.13v1.6
1 parent f5180e2 commit 2a91cef

File tree

316 files changed

+4439
-1232
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

316 files changed

+4439
-1232
lines changed
 

‎CMakeLists.txt

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
cmake_minimum_required(VERSION 3.11)
22

3+
set(SYSTEM_INFO_BUILD_RDF_INTERFACES ON)
4+
35
## Specify the top level name of the project - this will define the solution name for Visual Studio
46
project(RMV)
57

68
# Define version information
79
set(RMV_MAJOR_VERSION 1)
8-
set(RMV_MINOR_VERSION 5)
10+
set(RMV_MINOR_VERSION 6)
911
if (NOT RMV_BUGFIX_NUMBER)
1012
set(RMV_BUGFIX_NUMBER 0)
1113
endif ()
@@ -19,6 +21,9 @@ string(TIMESTAMP YEAR_STRING "\"%Y\"")
1921
configure_file("${CMAKE_SOURCE_DIR}/Buildinfo.properties.in" "${CMAKE_SOURCE_DIR}/Buildinfo.properties")
2022
configure_file("${CMAKE_SOURCE_DIR}/source/frontend/util/version.h.in" "${CMAKE_SOURCE_DIR}/source/frontend/util/version.h")
2123

24+
option(RDF_ENABLE_CXX_BINDINGS "Allow usage of C++ interface for RDF library" ON)
25+
option(RDF_STATIC "Build RDF as a static library" ON)
26+
2227
## For RMV we only care about the Debug and Release configuration types
2328
set(CMAKE_CONFIGURATION_TYPES Debug Release)
2429

@@ -30,35 +35,36 @@ IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
3035
ENDIF()
3136

3237
# As default for RMV, include the debug & internal status in filename - but not the platform bitness
33-
set (CMAKE_DEBUG_POSTFIX -d${ADT_INTERNAL_POSTFIX})
34-
set (CMAKE_RELEASE_POSTFIX ${ADT_INTERNAL_POSTFIX})
38+
set (CMAKE_DEBUG_POSTFIX -d)
39+
set (CMAKE_RELEASE_POSTFIX)
3540

3641
IF(WIN32)
37-
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/../release${ADT_INTERNAL_POSTFIX_LOWER})
38-
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/../debug${ADT_INTERNAL_POSTFIX_LOWER})
42+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/../release)
43+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/../debug)
3944
ELSE(WIN32)
40-
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/../../release${ADT_INTERNAL_POSTFIX_LOWER})
41-
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/../../debug${ADT_INTERNAL_POSTFIX_LOWER})
45+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/../../release)
46+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/../../debug)
4247
ENDIF(WIN32)
4348

4449
# Add for CentOS compiler warning
4550
add_definitions(-DJSON_SKIP_UNSUPPORTED_COMPILER_CHECK)
4651

4752
include_directories("${PROJECT_SOURCE_DIR}/external/qt_common/")
4853
include_directories("${PROJECT_SOURCE_DIR}/external/")
54+
include_directories("${PROJECT_SOURCE_DIR}/external/third_party/")
4955

5056
# Global compiler options
5157
IF(WIN32)
5258
add_compile_options(/MP)
5359
# bump the stack size
5460
add_link_options(/STACK:16777216)
5561
ELSEIF(UNIX)
56-
# Use -Wno-missing-field-initializers for CentOS compiler warning
57-
add_compile_options(-D_LINUX -Wall -Wextra -Wno-missing-field-initializers)
62+
add_compile_options(-D_LINUX -mno-avx2)
5863
# Allow executable to be double clicked.
5964
add_link_options(-no-pie)
6065
# Use _DEBUG on Unix for Debug Builds (defined automatically on Windows)
6166
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
67+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
6268
ENDIF(WIN32)
6369

6470
IF(WIN32)
@@ -87,8 +93,14 @@ MACRO(SOURCE_GROUP_BY_FOLDER target)
8793
ENDIF (files)
8894
ENDMACRO(SOURCE_GROUP_BY_FOLDER)
8995

96+
# Define C++ standard for RMV
97+
set(CMAKE_CXX_STANDARD 17)
98+
9099
add_subdirectory(external/qt_common/custom_widgets QtCommon/custom_widgets)
91100
add_subdirectory(external/qt_common/utils QtCommon/utils)
101+
add_subdirectory(external/rdf/imported/zstd)
102+
add_subdirectory(external/rdf/rdf)
103+
add_subdirectory(external/system_info_utils)
92104
add_subdirectory(source/parser parser)
93105
add_subdirectory(source/backend backend)
94106
add_subdirectory(source/frontend frontend)
@@ -185,5 +197,5 @@ add_custom_command(TARGET Documentation POST_BUILD
185197
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${RELEASE_DOCS_IN_ROOT} ${DOCS_OUTPUT_DIR}/.
186198
COMMAND ${CMAKE_COMMAND} -E echo "copying Samples to output directory"
187199
COMMAND ${CMAKE_COMMAND} -E make_directory ${DOCS_OUTPUT_DIR}/samples
188-
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_SOURCE_DIR}/samples/sampleTrace.rmv ${DOCS_OUTPUT_DIR}/samples/sample_trace.rmv
200+
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_SOURCE_DIR}/samples/sample_trace.rmv ${DOCS_OUTPUT_DIR}/samples/.
189201
)

‎build/dependency_map.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! python3
2-
# Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved.
2+
# Copyright (c) 2020-2023 Advanced Micro Devices, Inc. All rights reserved.
33

44
import sys
55

@@ -10,11 +10,14 @@
1010

1111
# To allow for future updates where we may have cloned the project somewhere other than gerrit, store the root of
1212
# the repo in a variable. In future, we can automatically calculate this based on the git config
13-
git_root = "https://github.com/GPUOpen-Tools/"
13+
github_tools = "https://github.com/GPUOpen-Tools/"
14+
github_root = "https://github.com/"
1415

1516
# Define a set of dependencies that exist as separate git projects.
1617
# each git dependency has a desired directory where it will be cloned - along with a commit to checkout
1718
git_mapping = {
18-
git_root + "QtCommon" : ["../external/qt_common", "v3.8.0"],
19-
git_root + "UpdateCheckAPI" : ["../external/update_check_api", "v2.0.1"],
19+
github_tools + "QtCommon" : ["../external/qt_common", "v3.8.0"],
20+
github_tools + "UpdateCheckApi" : ["../external/update_check_api", "v2.0.1"],
21+
github_tools + "system_info_utils" : ["../external/system_info_utils", "88a338a01949f8d8bad60a30b78b65300fd13a9f"],
22+
github_root + "GPUOpen-Drivers/libamdrdf" : ["../external/rdf", "v1.1.2"],
2023
}

0 commit comments

Comments
 (0)
Please sign in to comment.