Skip to content

Commit

Permalink
SWDEV-454108 - Add the support for gfx9-4-generic in comgr and `d…
Browse files Browse the repository at this point in the history
…evice-libs`

Change-Id: I3d83215c96d62f077575b6cd2785000cb6f19cdc
  • Loading branch information
shiltian committed Nov 14, 2024
1 parent 2bcfa70 commit 96f975a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions amd/comgr/docs/ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ New Targets
- gfx1151
- gfx1152
- gfx9-generic
- gfx9-4-generic
- gfx10-1-generic
- gfx10-3-generic
- gfx11-generic
Expand Down
1 change: 1 addition & 0 deletions amd/comgr/src/comgr-isa-metadata.def
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ HANDLE_ISA("amdgcn-amd-amdhsa-", "gfx1200", false, false, EF_AMDGPU_MAC
HANDLE_ISA("amdgcn-amd-amdhsa-", "gfx1201", false, false, EF_AMDGPU_MACH_AMDGCN_GFX1201, true, 65536, 32, 4, 40, 1024, 106, 800, 106, 24, 1536, 256)

HANDLE_ISA("amdgcn-amd-amdhsa-", "gfx9-generic", false, true, EF_AMDGPU_MACH_AMDGCN_GFX9_GENERIC, true, 65536, 32, 4, 40, 1024, 16, 800, 102, 4, 256, 256)
HANDLE_ISA("amdgcn-amd-amdhsa-", "gfx9-4-generic", true, true, EF_AMDGPU_MACH_AMDGCN_GFX9_4_GENERIC, true, 65536, 32, 4, 40, 1024, 16, 800, 102, 4, 256, 256)
HANDLE_ISA("amdgcn-amd-amdhsa-", "gfx10-1-generic", false, true, EF_AMDGPU_MACH_AMDGCN_GFX10_1_GENERIC, true, 65536, 32, 4, 40, 1024, 106, 800, 106, 8, 256, 256)
HANDLE_ISA("amdgcn-amd-amdhsa-", "gfx10-3-generic", false, false, EF_AMDGPU_MACH_AMDGCN_GFX10_3_GENERIC, true, 65536, 32, 4, 40, 1024, 106, 800, 106, 8, 256, 256)
HANDLE_ISA("amdgcn-amd-amdhsa-", "gfx11-generic", false, false, EF_AMDGPU_MACH_AMDGCN_GFX11_GENERIC, true, 65536, 32, 4, 40, 1024, 106, 800, 106, 16, 1024, 256)
Expand Down
1 change: 1 addition & 0 deletions amd/comgr/test/get_data_isa_name_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ static isa_features_t IsaFeatures[] = {
{"amdgcn-amd-amdhsa--gfx1201", false, false, none, false, none, false},

{"amdgcn-amd-amdhsa--gfx9-generic", true, false, none, true, any, true},
{"amdgcn-amd-amdhsa--gfx9-4-generic", false, true, none, true, none, true},
{"amdgcn-amd-amdhsa--gfx10-1-generic", false, false, none, true, none, true},
{"amdgcn-amd-amdhsa--gfx10-3-generic", false, false, none, false, none, true},
{"amdgcn-amd-amdhsa--gfx11-generic", false, false, none, false, none, true},
Expand Down
13 changes: 13 additions & 0 deletions amd/device-libs/oclc/src/isa_version_9-4-generic.cl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*===--------------------------------------------------------------------------
* ROCm Device Libraries
*
* This file is distributed under the University of Illinois Open Source
* License. See LICENSE.TXT for details.
*===------------------------------------------------------------------------*/

#include "oclc.h"

// gfx9-4-generic matches gfx942 from the device-lib perspective.
// NOTE: gfx942 has fp8 instructions, fp8 conversion instructions, and support
// for xf32 format, while the gfx9-4-generic doesn't.
const __constant int __oclc_ISA_version = 9402;

0 comments on commit 96f975a

Please sign in to comment.