Hey there,
I want to calculate a jacobi matrix with a finite-difference-method and want to benchmark and compare it to CPU calculation. Now I have a simple function which calculates the Difference quotient for a certain working point (x,y,z). I want to bench the times to calculate it on 20 processors, on 30 processors, on 40...50, 60, 70 etc etc.
So is there any possibility to define how many processors should be used in parallel and to define that each processor runs ONE calculation (like in MPI, where I can say:
processor 1 -> calculate f(1,1,1)
processor 2 -> calculate f(1,1,2)
....
processor N -> caulculate (1,1,n)
), so it's like a master-slave-system. And at the end, I gather the calculations together and put them together.
Is this possible in matlab, or is it at least (if not in matlab) possible in C++-Cuda to control and manage which processors does what?
Thanks so far!
|
|
0
|
|
|
|
Reply
|
Björn
|
1/31/2011 5:12:04 PM |
|
"Björn" wrote in message <ii6qh4$bmm$1@fred.mathworks.com>...
> Is this possible in matlab, or is it at least (if not in matlab) possible in C++-Cuda to control and manage which processors does what?
You'll have to do this in CUDA yourself. You'll want to use if-else statements to control what gets executed in each of the blocks. And you can set how many threads get assigned to the blocks.
If you want to call this CUDA code from MATLAB, the most efficient way is to use the Jacket SDK, learn more here: http://blog.accelereyes.com/blog/2010/10/29/jacket_sdk_trumps_mex/
|
|
0
|
|
|
|
Reply
|
John
|
1/31/2011 9:38:04 PM
|
|
Okay thanks so far. What is meant by blocks and processors per block? Do you know any example which does what I'm looking for?
Thanks so far!
|
|
0
|
|
|
|
Reply
|
Björn
|
2/1/2011 10:44:04 AM
|
|
|
2 Replies
291 Views
(page loaded in 0.125 seconds)
Similiar Articles: CUDA: Customize number of used processors - comp.soft-sys.matlab ...Hey there, I want to calculate a jacobi matrix with a finite-difference-method and want to benchmark and compare it to CPU calculation. Now I have ... number of CPUs - comp.unix.solarisCUDA: Customize number of used processors - comp.soft-sys.matlab ... Hey there, I want to calculate a jacobi matrix with a finite-difference-method and want to benchmark ... CPU board serial number - comp.unix.solarisCPU board serial number - comp.unix.solaris CUDA: Customize number of used processors - comp.soft-sys.matlab ... How to get a machine serial number - comp.unix.solaris CPU ... Does reloading CR3 with the same value flush the TLB? - comp.lang ...CUDA: Customize number of used processors - comp.soft-sys.matlab ... Does reloading CR3 with the same value flush the TLB? - comp.lang ..... from the 486 and, as far as I ... CPUID and number of cores - comp.lang.asm.x86CUDA: Customize number of used processors - comp.soft-sys.matlab ... CPUID and number of cores - comp.lang.asm.x86 CUDA: Customize number of used processors - comp.soft ... top: SIZE and RES - comp.sys.hp.hpuxThe ps RES number also includes RAM resident pages from other areas such as shared ... Meaning of mpstat's CPU percentage - comp.unix.solaris ... what is different ... Sending and receiving RTP with JMF - comp.lang.java.programmer ...Sending and receiving RTP with JMF - comp.lang.java.programmer ... CUDA: Customize number of used processors - comp.soft-sys.matlab ... Sending and receiving RTP with JMF ... nis slave or master on solaris 10 zone - comp.unix.solaris ...CUDA: Customize number of used processors - comp.soft-sys.matlab ..... caulculate (1,1,n) ), so it's like a master-slave-system. ... How to get a machine serial number ... Compare numbers - comp.soft-sys.matlabCUDA: Customize number of used processors - comp.soft-sys.matlab ... Hey there, I want to calculate a jacobi matrix with a finite-difference-method and want to benchmark ... jpeg decoding speeds: x86, ARM, dsp, fpga, GPU - comp.compression ...CUDA: Customize number of used processors - comp.soft-sys.matlab ... jpeg decoding speeds: x86, ARM, dsp, fpga, GPU - comp.compression ... CUDA: Customize number of used ... CUDA: Customize number of used processors - comp.soft-sys.matlab ...Hey there, I want to calculate a jacobi matrix with a finite-difference-method and want to benchmark and compare it to CPU calculation. Now I have ... CUDA - Wikipedia, the free encyclopediaCUDA has also been used to accelerate non-graphical applications in ... shared memory region (up to 48KB per Multi-Processor ... least 32 for best performance, with total number ... 7/25/2012 6:35:53 PM
|