Add Blackwell instructions test kernel and update linker script
- Add kernels/blackwell_insts/ with test kernel and input data - Update linker script with extended memory layout - Remove obsolete sgemm_tcore_blackwell Makefile - Update VX_types.h and common.h
This commit is contained in:
@@ -184,10 +184,10 @@
|
||||
#define VX_CSR_CORE_ID 0xCC2
|
||||
#define VX_CSR_WARP_MASK 0xCC3
|
||||
#define VX_CSR_THREAD_MASK 0xCC4 // warning! this value is also used in LLVM
|
||||
#define VX_CSR_GCID 0xCC5 // legacy global core id alias used by Radiance bootrom
|
||||
|
||||
#define VX_CSR_NUM_THREADS 0xFC0
|
||||
#define VX_CSR_NUM_WARPS 0xFC1
|
||||
#define VX_CSR_NUM_CORES 0xFC2
|
||||
|
||||
#endif // VX_TYPES_VH
|
||||
|
||||
|
||||
@@ -7,6 +7,15 @@ OUTPUT_FORMAT("elf64-littleriscv", "elf64-littleriscv",
|
||||
"elf64-littleriscv")
|
||||
OUTPUT_ARCH(riscv)
|
||||
ENTRY(_start)
|
||||
|
||||
MEMORY {
|
||||
DRAM0 (rwx): ORIGIN = 0x80000000, LENGTH = 512M
|
||||
DRAMARG (rwx): ORIGIN = 0x9fff0000, LENGTH = 8K
|
||||
DRAM1 (rwx): ORIGIN = 0xa0000000, LENGTH = 16M
|
||||
DRAM2 (rwx): ORIGIN = 0xa1000000, LENGTH = 16M
|
||||
DRAM3 (rwx): ORIGIN = 0xa2000000, LENGTH = 16M
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
. = STARTUP_ADDR;
|
||||
@@ -249,4 +258,20 @@ SECTIONS
|
||||
.gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }
|
||||
/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }
|
||||
|
||||
.args : {
|
||||
*(.args)
|
||||
. += 8K;
|
||||
} > DRAMARG
|
||||
.operand.a : {
|
||||
*(.operand.a)
|
||||
. += 32K;
|
||||
} > DRAM1
|
||||
.operand.b : {
|
||||
*(.operand.b)
|
||||
. += 32K;
|
||||
} > DRAM2
|
||||
.operand.c : {
|
||||
*(.operand.c)
|
||||
. += 32K;
|
||||
} > DRAM3
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user