Skip to content

Commit

Permalink
AGS 5.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rys committed Aug 24, 2020
1 parent 4287d98 commit 4c48321
Show file tree
Hide file tree
Showing 20 changed files with 32 additions and 8 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ In addition to the library itself, the AGS SDK includes several samples to demon
<a href="https://github.com/GPUOpen-LibrariesAndSDKs/AGS_SDK/releases/latest/"><img src="http://gpuopen-librariesandsdks.github.io/media/latest-release-button.svg" alt="Latest release" title="Latest release"></a>
</div>

### What's new in AGS 5.4.2
Version 5.4.2 reinstates the sharedMemoryInBytes field which is required when calculating the memory available on APUs.

### What's new in AGS 5.4.1
Version 5.4.1 includes x86 libs and Visual Studio 2019 support. There is also support for base vertex and base instance intrinsics as well as GetWaveSize intrinsics. The samples have been ported from premake to cmake.

Expand Down
Binary file modified ags_lib/doc/amd_ags.chm
Binary file not shown.
13 changes: 11 additions & 2 deletions ags_lib/inc/amd_ags.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
/// \endinternal
///
/// ---------------------------------------
/// What's new in AGS 5.4.2 since version 5.4.1
/// ---------------------------------------
/// AGS 5.4.2 includes the following updates:
/// * sharedMemoryInBytes has been reinstated.
/// * Clock speed returned for APUs.
///
/// ---------------------------------------
/// What's new in AGS 5.4.1 since version 5.4.0
/// ---------------------------------------
/// AGS 5.4.1 includes the following updates:
Expand Down Expand Up @@ -85,7 +92,7 @@

#define AMD_AGS_VERSION_MAJOR 5 ///< AGS major version
#define AMD_AGS_VERSION_MINOR 4 ///< AGS minor version
#define AMD_AGS_VERSION_PATCH 1 ///< AGS patch version
#define AMD_AGS_VERSION_PATCH 2 ///< AGS patch version

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -336,7 +343,9 @@ struct AGSDeviceInfo
float teraFlops; ///< Teraflops of GPU. Zero if not GCN onwards. Calculated from iCoreClock * iNumCUs * 64 Pixels/clk * 2 instructions/MAD

int isPrimaryDevice; ///< Whether or not this is the primary adapter in the system. Not set on the WACK version.
long long localMemoryInBytes; ///< The size of local memory in bytes. 0 for non AMD hardware.
unsigned long long localMemoryInBytes; ///< The size of local memory in bytes. 0 for non AMD hardware.
unsigned long long sharedMemoryInBytes; ///< The size of system memory available to the GPU in bytes. It is important to factor this into your VRAM budget for APUs
///< as the reported local memory will only be a small fraction of the total memory available to the GPU.

int numDisplays; ///< The number of active displays found to be attached to this adapter.
AGSDisplayInfo* displays; ///< List of displays allocated by AGS to be numDisplays in length.
Expand Down
Binary file modified ags_lib/lib/amd_ags_x64.dll
Binary file not shown.
Binary file modified ags_lib/lib/amd_ags_x64_2019_MD.lib
Binary file not shown.
Binary file modified ags_lib/lib/amd_ags_x64_2019_MDd.lib
Binary file not shown.
Binary file modified ags_lib/lib/amd_ags_x64_2019_MT.lib
Binary file not shown.
Binary file modified ags_lib/lib/amd_ags_x64_2019_MTd.lib
Binary file not shown.
Binary file modified ags_lib/lib/amd_ags_x86.dll
Binary file not shown.
Binary file modified ags_lib/lib/amd_ags_x86_2019_MD.lib
Binary file not shown.
Binary file modified ags_lib/lib/amd_ags_x86_2019_MDd.lib
Binary file not shown.
Binary file modified ags_lib/lib/amd_ags_x86_2019_MT.lib
Binary file not shown.
Binary file modified ags_lib/lib/amd_ags_x86_2019_MTd.lib
Binary file not shown.
4 changes: 2 additions & 2 deletions ags_sample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ set(CMAKE_GENERATOR_PLATFORM x64)
set(CMAKE_CONFIGURATION_TYPES Debug Release)

if(AGS_INTERNAL_DEBUG)
project(ags_sample_internal VERSION 5.4.1)
project(ags_sample_internal VERSION 5.4.2)
else()
project(ags_sample VERSION 5.4.1)
project(ags_sample VERSION 5.4.2)
endif()

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)
Expand Down
4 changes: 4 additions & 0 deletions ags_sample/build/GenerateSolutions.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mkdir VS2019
cd VS2019
cmake ..\.. -G "Visual Studio 16 2019" -A x64
cd ..
4 changes: 2 additions & 2 deletions ags_sample/src/AGSSample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ void PrintDisplayInfo( const AGSGPUInfo& gpuInfo )
sprintf_s( wgpInfo, ", %d WGPs", device.numWGPs );
}

printf( "Architecture: %s, %d CUs%s, %d ROPs\n", asicFamily[ device.asicFamily ], device.numCUs, wgpInfo, device.numROPs );
printf( "Architecture: %s, %s%d CUs%s, %d ROPs\n", asicFamily[ device.asicFamily ], device.isAPU ? "(APU), " : "", device.numCUs, wgpInfo, device.numROPs );
printf( " core clock %d MHz, memory clock %d MHz\n", device.coreClock, device.memoryClock );
printf( " %.1f Tflops\n", device.teraFlops );
printf( "local memory: %d MBs (%.1f GB/s)\n\n", (int)( device.localMemoryInBytes / ( 1024 * 1024 ) ), (float)device.memoryBandwidth / 1024.0f );
printf( "local memory: %d MBs (%.1f GB/s), shared memory: %d MBs\n\n", (int)( device.localMemoryInBytes / ( 1024 * 1024 ) ), (float)device.memoryBandwidth / 1024.0f, (int)( device.sharedMemoryInBytes / ( 1024 * 1024 ) ) );
}

printf( "\n" );
Expand Down
2 changes: 1 addition & 1 deletion crossfire_sample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15)
set(CMAKE_GENERATOR_PLATFORM x64)
set(CMAKE_CONFIGURATION_TYPES Debug Release)

project(crossfire_sample VERSION 5.4.1)
project(crossfire_sample VERSION 5.4.2)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
Expand Down
4 changes: 4 additions & 0 deletions crossfire_sample/build/GenerateSolutions.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mkdir VS2019
cd VS2019
cmake ..\.. -G "Visual Studio 16 2019" -A x64
cd ..
2 changes: 1 addition & 1 deletion eyefinity_sample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15)
set(CMAKE_GENERATOR_PLATFORM x64)
set(CMAKE_CONFIGURATION_TYPES Debug Release)

project(eyefinity_sample VERSION 5.4.1)
project(eyefinity_sample VERSION 5.4.2)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
Expand Down
4 changes: 4 additions & 0 deletions eyefinity_sample/build/GenerateSolutions.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mkdir VS2019
cd VS2019
cmake ..\.. -G "Visual Studio 16 2019" -A x64
cd ..

0 comments on commit 4c48321

Please sign in to comment.