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
 Feature Requests
 Support for Intel Cilk
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

origonwaltz
Starting Member

1 Posts

Posted - Jun 05 2013 :  1:15:42 PM  Show Profile  Reply with Quote
Hi,

I use Intel Cilk and Intel array notations quite a lot. Array notations seem to behave without showing up errors, but VAX keep underlining code using cilk as if these were errors.

Example:

cilk_for( int y = 0 ; y < height ; ++y )
{
DoThingsWithY( y );
}

VAX will underline cilk_for, as well as int y as errors. It says:

Error: identifier "_Cilk_for" is undefined (cilk_for is a #define for _Cilk_for).

I suggest support for these.

Best regards

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 05 2013 :  6:33:45 PM  Show Profile  Reply with Quote
Which Visual Studio version are you using? In VS2010 and VS2012, the IDE has a similar mechanism, which it controlled via the following setting:

Tools -> Options... -> Text Editor -> C/C++ -> Advanced -> Disable Squiggles

Can you please try if setting the above to "true" makes any difference?
Go to Top of Page

acarette
New Member

Canada
2 Posts

Posted - Jun 06 2013 :  08:33:36 AM  Show Profile  Reply with Quote
This fixes the problem, I had no idea these options were available.

Thanks!
Go to Top of Page

acarette
New Member

Canada
2 Posts

Posted - Jun 06 2013 :  08:40:40 AM  Show Profile  Reply with Quote
Screw this, I replied too fast.

Disabling the squiggles thing removes most of the red underlines but there are still a random red underline under the first parenthesis of the for loop statement.

It must be because the system does not recognizes the _Cilk_for symbol...

I use visual studio 2012 with intel composer XE 2013.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 06 2013 :  4:38:56 PM  Show Profile  Reply with Quote
Visual Assist underlines only spelling errors in comments with VS2012 and has a separate parser from default intellisense.

But just to double check, next time this happens, can you please try disabling Visual Assist temporarily to see if it makes any difference?

VAssistX -> Enable / Disable Visual Assist X
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Jun 10 2013 :  10:51:20 AM  Show Profile  Reply with Quote
You can also try adding _Cilk_for to the "usertype.dat" file, which is used to add custom keywords to the IDE:

http://docs.wholetomato.com?W148

zen is the art of being at one with the two'ness
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