You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BUILD.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,17 +22,18 @@ present on the system, this script will instead do a "git pull" on those reposit
22
22
this script everytime you pull new changes from GPA repository.
23
23
* This script will also download and execute the Vulkan™ SDK installer.
24
24
* 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.
25
-
* 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 files will need to be updated:
25
+
* 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:
* 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:
28
+
*`source ~/VulkanSDK/1.0.68.0/setup-env.sh` (adjust path as necessary)
29
29
30
30
## Windows Build Information
31
31
32
32
##### Prerequisites
33
33
* Microsoft Visual Studio 2015 Community Edition or higher + Update 3
34
34
* Windows 10 SDK Version 10.0.10586.0 from https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk
35
35
* You can override the version of the Windows 10 SDK used by modifying Common/Lib/Ext/Windows-Kits/Global-WindowsSDK.props
36
+
* Microsoft .NET 4.6.2 SDK from https://www.microsoft.com/en-us/download/details.aspx?id=53321
36
37
37
38
##### Build Instructions
38
39
* Load Build\VS2015\GPUPerfAPI.sln into Visual Studio
@@ -73,6 +74,7 @@ this script everytime you pull new changes from GPA repository.
73
74
*`hsadir`: overrides the location of the ROCm/HSA header files (by default they are expected to be in /opt/rocm/hsa)
74
75
*`gtestlibdir`: overrides the location of the GoogleTest libraries (by default they are expected to be in Common/Lib/Ext/GoogleTest/1-7/lib/gcc5/x64. There is also a gcc4.x-compatible version in Common/Lib/Ext/GoogleTest/1-7/lib/x64 for use when building on a system with gcc 4.x)
75
76
*`gtestlibdir32`: overrides the location of the 32-bit GoogleTest libraries (by default they are expected to be in Common/Lib/Ext/GoogleTest/1-7/lib/gcc5/x86. There is also a gcc4.x-compatible version in Common/Lib/Ext/GoogleTest/1-7/lib/x86 for use when building on a system with gcc 4.x)
77
+
*`vksdkdir`: overrides the location of the Vulkan SDK. If not specified, the build will use a `VULKAN_SDK` environment variable to determine where to look for the Vulkan SDK.
76
78
* After a successful build, the GPUPerfAPI binaries can be found in Output/bin.
77
79
* Example build command line (builds the debug versions of the binaries, skipping the HSA library):
echo"Build ${BASENAME}, 64-bit..."| tee -a $LOGFILE
216
248
217
-
if! make -C $SUBDIR -j$CPU_COUNT$HSA_DIR_OVERRIDE$VK_INC_DIR_OVERRIDE$GTEST_LIB_DIR_OVERRIDE"$ADDITIONAL_COMPILER_DEFINES_OVERRIDE"${MAKE_TARGET}>>$LOGFILE2>&1;then
249
+
if! make -C $SUBDIR -j$CPU_COUNT$HSA_DIR_OVERRIDE$VK_SDK_DIR_OVERRIDE$GTEST_LIB_DIR_OVERRIDE"$ADDITIONAL_COMPILER_DEFINES_OVERRIDE"${MAKE_TARGET}>>$LOGFILE2>&1;then
218
250
echo"Failed to build ${BASENAME}, 64 bit"
219
251
exit 1
220
252
fi
221
253
222
254
#make 64 bit Internal
223
255
if$bBuildInternal;then
224
-
if! make -C $SUBDIR -j$CPU_COUNT$HSA_DIR_OVERRIDE$VK_INC_DIR_OVERRIDE$GTEST_LIB_DIR_OVERRIDE"$ADDITIONAL_COMPILER_DEFINES_OVERRIDE"${MAKE_TARGET}Internal >>$LOGFILE2>&1;then
256
+
if! make -C $SUBDIR -j$CPU_COUNT$HSA_DIR_OVERRIDE$VK_SDK_DIR_OVERRIDE$GTEST_LIB_DIR_OVERRIDE"$ADDITIONAL_COMPILER_DEFINES_OVERRIDE"${MAKE_TARGET}Internal >>$LOGFILE2>&1;then
225
257
echo"Failed to build ${BASENAME}, 64 bit, Internal"
0 commit comments