Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
Add gfx1030
Browse files Browse the repository at this point in the history
Change-Id: Icb3cbd79540dac03bd729ac93958c5b512d2ee3d
  • Loading branch information
kzhuravl authored and aakanksha555 committed Jul 30, 2020
1 parent 5ff5319 commit 5ad4240
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions ockl/src/dots.cl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ extern __attribute__((const)) int __llvm_amdgcn_sdot8(int a, int b, int c, bool
extern __attribute__((const)) uint __llvm_amdgcn_udot8(uint a, uint b, uint c, bool s) __asm("llvm.amdgcn.udot8");

#define SWDOT __oclc_ISA_version < 9006 || __oclc_ISA_version == 9009 || __oclc_ISA_version == 10100

#define AS_INT(X) __builtin_astype(X, int)
#define AS_UINT(X) __builtin_astype(X, uint)
#define ATTR __attribute__((const))
Expand Down
2 changes: 1 addition & 1 deletion ockl/src/mtime.cl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "ockl.h"

ulong
__attribute__((target("s-memtime-inst"))) ulong
OCKL_MANGLE_U64(memtime)(void)
{
return __builtin_amdgcn_s_memtime();
Expand Down
11 changes: 11 additions & 0 deletions oclc/src/isa_version_1030.cl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*===--------------------------------------------------------------------------
* ROCm Device Libraries
*
* This file is distributed under the University of Illinois Open Source
* License. See LICENSE.TXT for details.
*===------------------------------------------------------------------------*/

#include "oclc.h"

const __constant int __oclc_ISA_version = 10300;

0 comments on commit 5ad4240

Please sign in to comment.