parallel.gpu.CUDAKernel memory types

1 回表示 (過去 30 日間)
m4 Chrennikov
m4 Chrennikov 2011 年 9 月 27 日
Hi folks.
I would like to know which types of CUDA memory I can use with subj matlab object. More specifically I wonder if user can use constant or texture memory. I'm newbie in CUDA programming but AFAIK using such memory types requires code outside kernel, but this code (cpu code) is discarded by compiler with -ptx flag. Correct me if I'm wrong or forward some useful links.

回答 (2 件)

Edric Ellis
Edric Ellis 2011 年 9 月 28 日
Currently it's not possible to use either texture or constant memory with CUDAKernel objects. The memory caches in recent NVIDIA GPUs mean that many of the advantages of using constant memory are no longer so important.
Do you have a particular example of what you'd like to do with texture/constant memory?
  2 件のコメント
m4 Chrennikov
m4 Chrennikov 2011 年 10 月 1 日
I want to store some precomputed data. What user should do in this situation? I should point out that I already plan to store some different data in shared memory (this data is also constant for all threads, but I can process it separately: by tiles).
For example each thread need to access two constant float arrays
1x14 - some input
and
14x300 - precomputed data
m4 Chrennikov
m4 Chrennikov 2011 年 10 月 6 日
ping

サインインしてコメントする。


m4 Chrennikov
m4 Chrennikov 2011 年 12 月 6 日
Ping!
I've read about LDU in Fermi arch, but it isn't clear for me in which cases values from global memory are cached. Could you give some explanations on that using my comment above?
As I understood there is no way to use textures?

カテゴリ

Help Center および File ExchangeGPU Computing についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by