S
Skybuck Flying
Hello,
In this contest the CPU will face the GPU.
Which processor will execute the code/concept faster ?
// cpu/serial concept code is:
var
mTable : array of array of integer;
mRowCount : integer;
mColumnCount : integer;
procedure AllocateTable;
begin
mRowCount := 8000;
mColumnCount := 9000;
SetLength( mTable, mRowCount, mColumnCount );
end;
procedure WorkToDo;
var
vRowIndex1 : integer;
vRowIndex2 : integer;
vColumnIndex : integer;
vValue1 : integer;
vValue2 : integer;
begin
vRowIndex1 := 5;
vRowIndex2 := 8;
vValue1 := 5;
vValue2 := 10;
// calculations could be done in parallel on GPU.
for vColumnIndex := 0 to mColumnCount-1 do
begin
mTable[ vRowIndex1, vColumnIndex ] := (mTable[ vRowIndex1,
vColumnIndex ] * vValue1) - (mTable[ vRowIndex2, vColumnIndex ] * vValue2);
end;
end;
For cpu:
MMX/XMM/SIMD/SSE/SSE2 version could be made.
For gpu:
OpenGL or DirectX version could be made.
This is a contest between the CPU and GPU thus helping each other is
allowed.
My test system will be:
X2 3800+ and two GTX 7900 512 MB cards.
^^^ Code may be heavily optimized for this system or similiar ^^^.
Alternative test system could be:
Pentium III 450 mhz and FX5200 with 128 MB ram.
^^^ can be ignored.
Code can be in ASM, C/C++ or Delphi.
Bye,
Skybuck.
In this contest the CPU will face the GPU.
Which processor will execute the code/concept faster ?
// cpu/serial concept code is:
var
mTable : array of array of integer;
mRowCount : integer;
mColumnCount : integer;
procedure AllocateTable;
begin
mRowCount := 8000;
mColumnCount := 9000;
SetLength( mTable, mRowCount, mColumnCount );
end;
procedure WorkToDo;
var
vRowIndex1 : integer;
vRowIndex2 : integer;
vColumnIndex : integer;
vValue1 : integer;
vValue2 : integer;
begin
vRowIndex1 := 5;
vRowIndex2 := 8;
vValue1 := 5;
vValue2 := 10;
// calculations could be done in parallel on GPU.
for vColumnIndex := 0 to mColumnCount-1 do
begin
mTable[ vRowIndex1, vColumnIndex ] := (mTable[ vRowIndex1,
vColumnIndex ] * vValue1) - (mTable[ vRowIndex2, vColumnIndex ] * vValue2);
end;
end;
For cpu:
MMX/XMM/SIMD/SSE/SSE2 version could be made.
For gpu:
OpenGL or DirectX version could be made.
This is a contest between the CPU and GPU thus helping each other is
allowed.
My test system will be:
X2 3800+ and two GTX 7900 512 MB cards.
^^^ Code may be heavily optimized for this system or similiar ^^^.
Alternative test system could be:
Pentium III 450 mhz and FX5200 with 128 MB ram.
^^^ can be ignored.
Code can be in ASM, C/C++ or Delphi.
Bye,
Skybuck.