Author |
Topic |
|
harrism
New Member
5 Posts |
Posted - Oct 22 2007 : 12:01:33 PM
|
I do a lot of development in NVIDIA CUDA, which is an extension to standard C/C++ for parallel execution on GPUs. Grammatically, it is just C/C++, so visual assist should be able to handle it, no problem. However CUDA files typically use the file extension ".cu" (and sometimes .cuh), so visual assist doesn't attempt to parse them.
How do I make visual assist parse these files?
Thanks, Mark |
|
rhummer
Tomato Guru
USA
527 Posts |
Posted - Oct 22 2007 : 12:17:21 PM
|
This FAQ entry should do it for ya.
http://docs.wholetomato.com?W328 |
Tools Engineer - Raven Software VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64
|
|
|
harrism
New Member
5 Posts |
Posted - Dec 09 2007 : 6:54:33 PM
|
Thanks! This worked pretty well, so I posted a link on our CUDA forums so other users may benefit. http://forums.nvidia.com/index.php?showtopic=53690
However, CUDA adds some built-in variables to C/C++. I wonder if there is a way to get VA to support them? These are more than just keywords, they are built-in structures. For example:
typedef struct { size_t x, y, z; } blockDim;
Unfortunately they aren't defined in a header (they are part of the language) so I can't just include the header to get VA to understand them. Any options here?
Thanks, Mark |
|
|
schoenherr
Tomato Guru
Germany
160 Posts |
Posted - Dec 10 2007 : 12:42:54 AM
|
@harrism try to define these symbols in the stdafx.h file, located in the VAX directory.
|
|
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
|
|
Topic |
|