/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Development/libraries/cuda/performance.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2009-04-09 03:21:08 UTC
  • Revision ID: csa@dside.dyndns.org-20090409032108-w4edamdh4adrgdu3
import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
1. Memory allocations
 
2
 
 
3
 for () {
 
4
    cudaMalloc()
 
5
    ....
 
6
    cudaFree()
 
7
 } 
 
8
 
 
9
 is significantly! faster than
 
10
 
 
11
 for () {
 
12
    cudaMalloc()
 
13
    ...
 
14
 }
 
15
 
 
16
 for () {
 
17
    cudaFree()
 
18
 }
 
19
 
 
20
 However, it is even better (significantly) to allocate everything at once
 
21
 and just segment access.
 
22
 
 
 
b'\\ No newline at end of file'