Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6013995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:37:41+00:00 2026-05-23T02:37:41+00:00

So far I figured out that one can prevent Eclipse from complaining about proprietary

  • 0

So far I figured out that one can prevent Eclipse from complaining about proprietary CUDA keywords by defining them if __CDT_PARSER__ is defined. The following code prevents Eclipse from complaining about most of the CUDA keywords.

// Prevent eclipse from bitching about unknown keywords
#ifdef __CDT_PARSER__
#define __global__
#define __device__
#define __host__
#define __shared__
#endif

This however does not work with the brackets used to configure kernel launches, since my kernels usually have long argument lists this is annoying. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T02:37:42+00:00Added an answer on May 23, 2026 at 2:37 am

    Here’s a solution that will work with Eclipse CDT, Visual Studio or Qt Creator This is my solution:

    #if (defined __CDT_PARSER__) || (defined __INTELLISENSE__) || (defined Q_CREATOR_RUN)
    #define __global__
    #define __device__
    #define __host__
    #define __shared__
    #define CUDA_KERNEL_DIM(...)
    
    #else
    #define CUDA_KERNEL_DIM(...)  <<< __VA_ARGS__ >>>
    
    #endif
    

    Then invoke kernels with:

    myKernel CUDA_KERNEL_DIM(gridDim, blockDim) (foo, bar);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i use Zend_Auth for one of my Projects, but so far haven't figured out
-Edit: Solution Found- Figured it out after some heavy searching - one person (I
As far as I know, in gcc you can write something like: #define DBGPRINT(fmt...)
As far as I can tell, this is isn't possible, so I'm really just
One of the things I like about the way I have Subversion set up
I can't figure out the prototype for this simple function: In stack: Function call:
I'm trying to figure out this problem for one of my comp sci classes,
Short version: What kind of escape sequence can one use to search for unicode
I have a program that relates to a database. I start out my program
I'm trying to figure out what are the layers that a web application needs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.