tags:

views:

255

answers:

3

Hi,

I write matlab program(cuda) for generate key.

how to optimize cuda program for get better performance?

+1  A: 

You need to spend some time learning the CUDA programming tools and architecture. There is a lot of good info at developer.nvidia.com and they have active and helpful forums there for CUDA developers - a great place for noobs to get up to speed on CUDA development.

Paul R
+1  A: 

There is a ton of training material on the NVIDIA website, specifically checkout the training page and sign up for at least one of the free online seminars (pre-recorded sessions also available, same link).

Once you've got started, post code either on the NVIDIA CUDA forums or here on StackOverflow and the community will likely help out, but you'll need more specific questions to get more specific answers!

Tom
A: 
  • First of all, use a parallel algorithm
  • Tune memory access pattern (coalesce reads,etc)
  • Use textures, shared memory
  • Tune core occupancy (check cuda excel spreadsheet)
  • use streams

You should read the programming guide and best practices. Programming Gems are also very good.

crick3r