Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b9c5090

Browse files
committedDec 11, 2019
GPA 3.5 updates
1 parent 394b9a9 commit b9c5090

File tree

179 files changed

+4739
-35322
lines changed

Some content is hidden

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

179 files changed

+4739
-35322
lines changed
 

‎BUILD.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ order to clone/update any dependent repositories.
3131
present on the system, this script will instead do a "git pull" on those repositories to ensure that they are up to date. Please re-run
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 PreBuild.py or UpdateCommon.py.
34-
* This script will also download and execute the Vulkan SDK installer.
34+
* This script will also download and execute the Vulkan SDK installer.
3535
* 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.
3636
* 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:
3737
* [UpdateCommonMap.py](Scripts/UpdateCommonMap.py)
@@ -50,7 +50,6 @@ this script everytime you pull new changes from GPA repository.
5050
* `--skipvulkan`: Does not generate build files for Vulkan version of GPA
5151
* `--skipopengl`: Does not generate build files for OpenGL version of GPA
5252
* `--skipopencl`: Does not generate build files for OpenCL version of GPA
53-
* `--skiprocm`: Does not generate build files for ROCm version of GPA (Linux only)
5453
* `--skiptests`: Does not generate build files for unit tests
5554
* `--skipdocs`: Does not generate build files for documentation
5655
* `--cmakecmd="CMD"`: Override the "cmake" command with "CMD"
@@ -78,11 +77,6 @@ this script everytime you pull new changes from GPA repository.
7877
##### Prerequisites
7978
* Install the Mesa common development package: sudo apt-get install mesa-common-dev
8079
* For 32-bit builds, install the multilib packages: sudo apt-get install gcc-multilib g++-multilib
81-
* In order to build the ROCm/HSA version of GPA, you will need all or part of the ROCm stack installed
82-
* Follow the ROCm installation instructions to install either rocm-dkms or rocm-dev: https://rocm.github.io/ROCmInstall.html
83-
* In addition, please make sure that the optional ROCm package "rocprofiler-dev" is installed:
84-
* Ubuntu: sudo apt install rocprofiler-dev
85-
* CentOS: sudo yum install rocprofiler-dev
8680

8781
##### Build Instructions
8882
* Execute "make" in the CMakeBuild/x64/debug to build the 64-bit debug version of GPA
@@ -102,7 +96,7 @@ and [docs](docs) directories.
10296
There are three ways to execute the tool:
10397
* With no parameters - it opens the user interface with no fields prepopulated
10498
* With two parameters - it opens the user interface with the two main fields prepopulated. When you press the "Compile Public Counters" button it will load the correct input files and generate the output files in the correct location.
105-
* Param 1: API -- the API to compile counters for (ex: GL, CL, HSA, DX11, DX12, VK, etc).
99+
* Param 1: API -- the API to compile counters for (ex: GL, CL, DX11, DX12, VK, etc).
106100
* Param 2: HW generation: the generation to compile counters for (ex: Gfx6, Gfx7, Gfx8, etc.)
107101
* With six or seven parameters - the user interface does not open. It simply generates the c++ files using the specified input and output file locations
108102
* Param 1: Counter names file - text file containing hardware counter names and type (CounterNames[API][GEN].txt)

‎CMakeLists.txt

+11-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.5.1)
33

44
set(DEPTH "./")
55

6-
message("CMake: Generating project files for GPA....")
6+
message(STATUS "Generating project files for GPA....")
77
set(GPA_CMAKE_MODULES_DIR ${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules)
88

99
include(${GPA_CMAKE_MODULES_DIR}/CommonDefs.cmake)
@@ -15,8 +15,17 @@ endif()
1515

1616
set(GPA_ALL_OPEN_SOURCE ON)
1717

18+
if(${BUILD_ANDROID})
19+
include (${GPA_CMAKE_MODULES_DIR}/GPA-Android.cmake)
20+
21+
project(GPUPerfAPI-Full${AMDTInternalSuffix} VERSION ${GPA_MAJOR_VERSION}.${GPA_MINOR_VERSION} LANGUAGES C CXX)
22+
include(${GPA_CMAKE_MODULES_DIR}/Targets.cmake)
23+
24+
return()
25+
endif()
26+
1827
## Define the GPA solution name
1928
project(GPUPerfAPI${AMDTInternalSuffix} VERSION ${GPA_MAJOR_VERSION}.${GPA_MINOR_VERSION} LANGUAGES C CXX)
2029

2130
include(${GPA_CMAKE_MODULES_DIR}/Targets.cmake)
22-
message("CMake: Finished generating project files for GPA.")
31+
message(STATUS "Finished generating project files for GPA.")

0 commit comments

Comments
 (0)
Please sign in to comment.