-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add source code for RMV 1.1 release.
- Loading branch information
Showing
343 changed files
with
61,012 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
BasedOnStyle: Google | ||
IndentWidth: 4 | ||
UseTab: Never | ||
ColumnLimit: 160 | ||
Language: Cpp | ||
AccessModifierOffset: -4 | ||
BreakBeforeBraces: Custom | ||
BraceWrapping: | ||
|
||
AfterCaseLabel: true | ||
AfterClass: true | ||
AfterControlStatement: true | ||
AfterEnum: true | ||
AfterFunction: true | ||
AfterNamespace: true | ||
AfterObjCDeclaration: true | ||
AfterStruct: true | ||
AfterUnion: true | ||
AfterExternBlock: false | ||
BeforeCatch: true | ||
BeforeElse: true | ||
IndentBraces: false | ||
SplitEmptyFunction: true | ||
SplitEmptyRecord: true | ||
SplitEmptyNamespace: true | ||
ConstructorInitializerAllOnOneLineOrOnePerLine : false | ||
BreakConstructorInitializers: BeforeComma | ||
DerivePointerAlignment: false | ||
IndentCaseLabels: false | ||
NamespaceIndentation: All | ||
AlignConsecutiveAssignments: true | ||
AlignConsecutiveDeclarations: true | ||
AlignEscapedNewlines: Left | ||
AlignTrailingComments: true | ||
AlignOperands: true | ||
AllowShortFunctionsOnASingleLine: false | ||
AllowShortIfStatementsOnASingleLine: false | ||
AllowShortLoopsOnASingleLine: false | ||
AllowShortBlocksOnASingleLine: false | ||
ReflowComments: false | ||
SortIncludes: false | ||
SortUsingDeclarations: false | ||
BinPackArguments: false | ||
BinPackParameters: false | ||
ExperimentalAutoDetectBinPacking: false | ||
AllowAllParametersOfDeclarationOnNextLine: false |
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,52 @@ | ||
Checks: bugprone-*,clang-analyzer-*,clang-diagnostic-*,google-*,misc-*,modernize-*,-modernize-use-trailing-return-type,-modernize-concat-nested-namespaces,performance-*,readability-*,-modernize-use-auto | ||
WarningsAsErrors: bugprone-*,clang-analyzer-*,clang-diagnostic-*,google-*,misc-*,modernize-*,performance-*,readability-* | ||
FormatStyle: file | ||
CheckOptions: | ||
- key: readability-identifier-naming.ClassCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.ClassConstantCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.ClassConstantPrefix | ||
value: k | ||
- key: readability-identifier-naming.EnumCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.EnumConstantCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.EnumConstantPrefix | ||
value: k | ||
- key: readability-identifier-naming.FunctionCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.GlobalConstantCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.GlobalConstantPrefix | ||
value: k | ||
- key: readability-identifier-naming.GlobalConstantPointerCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.GlobalConstantPointerPrefix | ||
value: k | ||
- key: readability-identifier-naming.MethodCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.NamespaceCase | ||
value: lower_case | ||
- key: readability-identifier-naming.ParameterCase | ||
value: lower_case | ||
- key: readability-identifier-naming.PrivateMemberCase | ||
value: lower_case | ||
- key: readability-identifier-naming.PrivateMemberSuffix | ||
value: _ | ||
- key: readability-identifier-naming.PublicMemberCase | ||
value: lower_case | ||
- key: readability-identifier-naming.StaticConstantCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.StaticConstantPrefix | ||
value: k | ||
- key: readability-identifier-naming.TemplateParameterCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.TypeAliasCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.TypedefCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.UnionCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.VariableCase | ||
value: lower_case |
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,12 @@ | ||
*~ | ||
*.pyc | ||
*.orig | ||
__pycache__/ | ||
build/linux | ||
build/mac | ||
build/win | ||
documentation/build | ||
documentation/source/_build | ||
external | ||
.vscode | ||
*.aps |
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,117 @@ | ||
cmake_minimum_required(VERSION 3.11) | ||
|
||
## Specify the top level name of the project - this will define the solution name for Visual Studio | ||
project(RMV) | ||
|
||
## For RMV we only care about the Debug and Release configuration types | ||
set(CMAKE_CONFIGURATION_TYPES Debug Release) | ||
|
||
## Determine build suffixes based on configuration, bitness and internal status | ||
## These values will be inherited by all child projects | ||
set(ADT_PLATFORM_POSTFIX "-x86") | ||
IF(CMAKE_SIZEOF_VOID_P EQUAL 8) | ||
set(ADT_PLATFORM_POSTFIX "-x64") | ||
ENDIF() | ||
|
||
# As default for RMV, include the debug & internal status in filename - but not the platform bitness | ||
set (CMAKE_DEBUG_POSTFIX -d${ADT_INTERNAL_POSTFIX}) | ||
set (CMAKE_RELEASE_POSTFIX ${ADT_INTERNAL_POSTFIX}) | ||
|
||
IF(WIN32) | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/../release${ADT_INTERNAL_POSTFIX}) | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/../debug${ADT_INTERNAL_POSTFIX}) | ||
ELSE(WIN32) | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/../../release${ADT_INTERNAL_POSTFIX}) | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/../../debug${ADT_INTERNAL_POSTFIX}) | ||
ENDIF(WIN32) | ||
|
||
# Add for CentOS compiler warning | ||
add_definitions(-DJSON_SKIP_UNSUPPORTED_COMPILER_CHECK) | ||
|
||
include_directories("${PROJECT_SOURCE_DIR}/external/qt_common/") | ||
include_directories("${PROJECT_SOURCE_DIR}/external/") | ||
|
||
# Global compiler options | ||
IF(WIN32) | ||
add_compile_options(/W4 /WX /MP) | ||
# disable warning C4201: nonstandard extension used: nameless struct/union | ||
add_compile_options(/wd4201) | ||
# this warning is caused by the QT header files - use pragma to disable at source | ||
# disable warning C4127: conditional expression is constant | ||
add_compile_options(/wd4127) | ||
# bump the stack size | ||
add_link_options(/STACK:16777216) | ||
ELSEIF(UNIX) | ||
# Use -Wno-missing-field-initializers for CentOS compiler warning | ||
add_compile_options(-std=c++11 -D_LINUX -Wall -Wextra -Werror -Wno-missing-field-initializers) | ||
# Use _DEBUG on Unix for Debug Builds (defined automatically on Windows) | ||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG") | ||
ENDIF(WIN32) | ||
|
||
IF(WIN32) | ||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Zi") | ||
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /DEBUG") | ||
ENDIF(WIN32) | ||
|
||
# Macro to build source groups to match directory structure | ||
MACRO(SOURCE_GROUP_BY_FOLDER target) | ||
SET(SOURCE_GROUP_DELIMITER "/") | ||
SET(last_dir "") | ||
SET(files "") | ||
FOREACH(file ${SOURCES}) | ||
GET_FILENAME_COMPONENT(dir "${file}" PATH) | ||
IF (NOT "${dir}" STREQUAL "${last_dir}") | ||
IF (files) | ||
SOURCE_GROUP("${last_dir}" FILES ${files}) | ||
ENDIF (files) | ||
SET(files "") | ||
ENDIF (NOT "${dir}" STREQUAL "${last_dir}") | ||
SET(files ${files} ${file}) | ||
SET(last_dir "${dir}") | ||
ENDFOREACH(file) | ||
IF (files) | ||
SOURCE_GROUP("${last_dir}" FILES ${files}) | ||
ENDIF (files) | ||
ENDMACRO(SOURCE_GROUP_BY_FOLDER) | ||
|
||
add_subdirectory(external/qt_common/custom_widgets QtCommon/custom_widgets) | ||
add_subdirectory(external/qt_common/utils QtCommon/utils) | ||
add_subdirectory(source/parser parser) | ||
add_subdirectory(source/backend backend) | ||
add_subdirectory(source/frontend frontend) | ||
|
||
# Group external dependency targets into folder | ||
IF(WIN32) | ||
set_property(GLOBAL PROPERTY USE_FOLDERS ON) | ||
set_target_properties(QtCustomWidgets | ||
QtUtils | ||
PROPERTIES | ||
FOLDER Dependencies | ||
) | ||
ELSEIF(APPLE) | ||
set_property(GLOBAL PROPERTY USE_FOLDERS ON) | ||
set_target_properties(QtCustomWidgets | ||
QtUtils | ||
PROPERTIES | ||
FOLDER Dependencies | ||
) | ||
ENDIF() | ||
|
||
IF(WIN32) | ||
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT RadeonMemoryVisualizer) | ||
ENDIF(WIN32) | ||
|
||
## Copy Documentation and Samples to output directory | ||
add_custom_target(Documentation ALL) | ||
add_custom_command(TARGET Documentation POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E echo "copying documentation to output directory" | ||
COMMAND ${CMAKE_COMMAND} -E make_directory $<TARGET_FILE_DIR:RadeonMemoryVisualizer>/docs | ||
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_SOURCE_DIR}/documentation/License.htm $<TARGET_FILE_DIR:RadeonMemoryVisualizer>/docs/. | ||
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_SOURCE_DIR}/README.md $<TARGET_FILE_DIR:RadeonMemoryVisualizer>/. | ||
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_SOURCE_DIR}/Release_Notes.txt $<TARGET_FILE_DIR:RadeonMemoryVisualizer>/. | ||
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_SOURCE_DIR}/NOTICES.txt $<TARGET_FILE_DIR:RadeonMemoryVisualizer>/. | ||
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_SOURCE_DIR}/License.txt $<TARGET_FILE_DIR:RadeonMemoryVisualizer>/. | ||
COMMAND ${CMAKE_COMMAND} -E echo "copying samples to output directory" | ||
COMMAND ${CMAKE_COMMAND} -E make_directory $<TARGET_FILE_DIR:RadeonMemoryVisualizer>/samples | ||
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_SOURCE_DIR}/samples/sampleTrace.rmv $<TARGET_FILE_DIR:RadeonMemoryVisualizer>/samples/. | ||
) |
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2017-2020 Advanced Micro Devices, Inc. | ||
|
||
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. |
Oops, something went wrong.