Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 How do I add support for other file extensions?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

harrism
New Member

5 Posts

Posted - Oct 22 2007 :  12:01:33 PM  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
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

Go to Top of Page

harrism
New Member

5 Posts

Posted - Dec 09 2007 :  6:54:33 PM  Show Profile  Reply with Quote
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
Go to Top of Page

schoenherr
Tomato Guru

Germany
160 Posts

Posted - Dec 10 2007 :  12:42:54 AM  Show Profile  Reply with Quote
@harrism
try to define these symbols in the stdafx.h file, located in the VAX directory.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 10 2007 :  03:30:27 AM  Show Profile  Reply with Quote
harrism:
this process is described here: http://docs.wholetomato.com?W302
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000