Author |
Topic |
|
origonwaltz
Starting Member
1 Posts |
Posted - Jun 05 2013 : 1:15:42 PM
|
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
|
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? |
|
|
acarette
New Member
Canada
2 Posts |
Posted - Jun 06 2013 : 08:33:36 AM
|
This fixes the problem, I had no idea these options were available.
Thanks! |
|
|
acarette
New Member
Canada
2 Posts |
Posted - Jun 06 2013 : 08:40:40 AM
|
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. |
|
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - Jun 06 2013 : 4:38:56 PM
|
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
|
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Jun 10 2013 : 10:51:20 AM
|
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 |
|
|
|
Topic |
|