cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

denat
Journeyman III

Memory elements to GPU registers

Hi, can elements in memory locations be transferred to GPU registers and resource IDs in this way, using asm?

 

Ok, 

Denat

00 ALU: ADDR(1) CNT(5) 0 x: MOV T1, [MEM*] 1 x: MOV R0.x, [MEM*] y: MOV R0.y, [MEM*] z: MOV R0.z, [MEM*] w: MOV R0.w, 0

0 Likes
3 Replies
ryta1203
Journeyman III

I'm fairly certain that the MOV instruction is between registers only, like in most (if not all) ISAs, that's why most ISAs also include load/store instructions.

0 Likes

ryta, x86 and some other CISC ISA for CPUs can move between memory and register, many can also add, sub, shl, etc.

 

But denat, that's not the case for GPUs, for AMD GPUs loads and stores from memory must go in a diferent clause.

 

0 Likes

Originally posted by: eduardoschardong ryta, x86 and some other CISC ISA for CPUs can move between memory and register, many can also add, sub, shl, etc.

 

But denat, that's not the case for GPUs, for AMD GPUs loads and stores from memory must go in a diferent clause.

 

Ah, yes, you are correct, my mistake.

0 Likes