Skip to content

Commit f776dfb

Browse files
authored
Merge branch 'master' into patch-1
2 parents 33d3a8c + 6faa062 commit f776dfb

File tree

679 files changed

+1014189
-676833
lines changed

Some content is hidden

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

679 files changed

+1014189
-676833
lines changed

BUILD.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GPUPerfAPI no longer uses git submodules to reference dependent repositories. In
1111
order to clone/update any dependent repositories.
1212

1313
#### Prerequisites
14-
* Python, which can be installed from https://www.python.org/. Either Python 2.7 or 3.x should work.
14+
* Python 3.x, which can be installed from https://www.python.org/.
1515
* CMake 3.7.2 or newer
1616
* For Windows, this can be downloaded from https://cmake.org/download/
1717
* For Linux, this can be installed using: sudo apt-get install cmake
@@ -32,8 +32,8 @@ present on the system, this script will instead do a "git pull" on those reposit
3232
this script everytime you pull new changes from GPA repository.
3333
* NOTE: For GPA 3.3 or newer, if you are updating an existing clone of the GPA repo from a GPA release prior than 3.3, you will first need to delete the Common/Lib/Ext/GoogleTest directory. Starting with GPA 3.3, GPA is now using a fork of the official GoogleTest repo. Failure to remove this directory will lead to git errors when running [pre_build.py](build/pre_build.py) or [fetch_dependencies.py](scripts/fetch_dependencies.py).
3434
* This script will also download and execute the Vulkan� SDK installer.
35-
* On Windows, running the installer may require elevation. If you've previously installed the required Vulkan version, UpdateCommon will simply copy the files form the default installation location into the correct place into the GPUPerfAPI directory tree.
36-
* UpdateCommon is set up to install the version of the Vulkan SDK which was used during development. If you want to use a newer version of the SDK, the following file will need to be updated:
35+
* On Windows, running the installer may require elevation. If you've previously installed the required Vulkan version, fetch_dependencies.py will simply copy the files from the default installation location into the correct place into the GPUPerfAPI directory tree.
36+
* fetch_dependencies.py is set up to install the version of the Vulkan SDK which was used during development. If you want to use a newer version of the SDK, the following file will need to be updated:
3737
* [fetch_dependencies.py](scripts/fetch_dependencies.py)
3838
* By default the build will expect the Vulkan SDK to be found in a directory pointed to by the `VULKAN_SDK` environment variable. This environment variable is automatically set by the Windows SDK installer, but you may need to set it manually after running the Linux SDK installer. The Linux SDK includes a script called `setup-env.sh` to aid in setting this environment variable:
3939
* `source ~/VulkanSDK/1.0.68.0/setup-env.sh` (adjust path as necessary)
@@ -44,7 +44,6 @@ this script everytime you pull new changes from GPA repository.
4444
* `--config=[debug,release]`: Specify the config for which to generate makefiles. Default is both. A specific config can only be specified on Linux. On Windows, both configs are always supported by the generated VS solution and project files.
4545
* `--platform=[x86,x64]`: Specify the platform for which to generate build files. Default is both.
4646
* `--clean`: Deletes CMakeBuild directory and regenerates all build files from scratch
47-
* `--internal`: Generates build files to build the internal version of GPA
4847
* `--skipdx11`: Does not generate build files for DX11 version of GPA (Windows only)
4948
* `--skipdx12`: Does not generate build files for DX12 version of GPA (Windows only)
5049
* `--skipvulkan`: Does not generate build files for Vulkan version of GPA
@@ -65,12 +64,11 @@ this script everytime you pull new changes from GPA repository.
6564
##### Build Instructions
6665
* Load cmake_bld\x64\GPUPerfAPI.sln into Visual Studio to build the 64-bit version of GPA
6766
* Load cmake_bld\x86\GPUPerfAPI.sln into Visual Studio to build the 32-bit version of GPA
68-
* After a successful build, the GPUPerfAPI binaries can be found in `GPA\Output\$(Configuration)` (for example GPA\Output\Release)
67+
* After a successful build, the GPUPerfAPI binaries can be found in `gpu_performance_api\output\$(Configuration)` (for example gpu_performance_api\output\release)
6968

7069
#### Additional Information
7170
* The Windows projects each include a .rc file that embeds the VERSIONINFO resource into the final binary. Internally within AMD, a Jenkins build system will dynamically update
7271
the build number. The version and build numbers can be manually updated by modifying the [gpa_version.h](source/gpu_perf_api_common/gpa_version.h) file.
73-
* When building the internal version (using the --internal switch when calling [pre_build.py](build/pre_build.py), each binary filename will have a "-Internal" suffix (for example GPUPerfAPIDX11-x64-Internal.dll)
7472

7573
## Linux Build Information
7674

@@ -83,7 +81,7 @@ this script everytime you pull new changes from GPA repository.
8381
* Execute "make" in the cmake_bld/x64/release to build the 64-bit release version of GPA
8482
* Execute "make" in the cmake_bld/x86/debug to build the 32-bit debug version of GPA
8583
* Execute "make" in the cmake_bld/x86/release to build the 32-bit release version of GPA
86-
* After a successful build, the GPUPerfAPI binaries can be found in `GPA/Output/$(Configuration)` (for example GPA/Output/release)
84+
* After a successful build, the GPUPerfAPI binaries can be found in `gpu_performance_api/output/$(Configuration)` (for example gpu_performance_api/output/release)
8785
* When building the internal version, each binary filename will also have a "-Internal" suffix (for example libGPUPerfAPIGL-Internal.so)
8886

8987
## PublicCounterCompiler Tool

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ set(DEPTH "./")
66
message(STATUS "Generating project files for GPA....")
77
set(GPA_CMAKE_MODULES_DIR ${CMAKE_CURRENT_SOURCE_DIR}/build/cmake_modules)
88

9+
if(NOT DEFINED build)
10+
set(GPA_BUILD_NUMBER 0)
11+
else()
12+
set(GPA_BUILD_NUMBER ${build})
13+
endif()
14+
915
include(${GPA_CMAKE_MODULES_DIR}/gpa_version.cmake)
1016
include(${GPA_CMAKE_MODULES_DIR}/defs.cmake)
1117
include(${GPA_CMAKE_MODULES_DIR}/build_flags.cmake)

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2016-2020 Advanced Micro Devices, Inc. All rights reserved.
1+
Copyright (c) 2016-2021 Advanced Micro Devices, Inc. All rights reserved.
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)