News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

How to use the GPU for fast work with huge arrays of large structures

Started by assembler, February 20, 2017, 02:51:55 AM

Previous topic - Next topic

jj2007

Quote from: assembler on February 20, 2017, 02:51:55 AMI hav e a huge array of large structures and I want in my program to modify all structures in this array. I have a procedure that modifies one structure in the array as I want. I can use the .while loop macro to iterate through all the structures in the array and use this procedure for each structure, passing the address of the structure, but using the .while loop macro to iterate through all the structures in the array is very slow. Also the loop, cmp and conditional jumps and add instructions are not fast enough.

OK, maybe your program is so slow that it takes several days to process the whole dataset. Does that justify investing several weeks into the mysteries of GPU programming?

It would be helpful if you replaced "HUGE" etc with real figures. How big is your dataset, which operations do you need, and how long does it currently take? Did you already use the relevant parallel SIMD instructions?

hutch--

assembler,

Lets be clear about what is going on here, you have posted no code, no viable description of what you are trying to do and expect members to go and read your posting as if you are doing them a favour. Filtering the data through your interpretation and opinions is an impossible task for anyone to respond to accurately. Your bad manners in response to members trying to help you will only end up with one result, the pleasure of finding another venue to act in an arrogant manner. You have had strike 2, there will be no strike 3.

K_F

I've been looking at this for while now.. and this is the low down.

Nvidia and AMD(not sure here), do not give out register specifics and structures, nor their GPU asm instruction mnenomics.
There is no real specific assembler only a C compiler (and other shyt stuff) AFAIK for the GPU's.

All the dev kits are in C (ugh), and they want you to use their pre-compiled libraries, so if you're willing to play around with C and then try decifer the opcodes from there .. good luck as the GPU structures and opcodes seem to change with each generation of GPU. :eusa_clap:
'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'