Community
    • Login

    Is a CUDA language definition available?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 1.2k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Gomez AddamsG Offline
      Gomez Addams
      last edited by

      As the subject asks, is a CUDA language definition available? I tried looking at the user-defined language list but that server is not responding for me.

      The language is quite simple. It is just C/C++ with about half a dozen keywords added. Plus there is an added construct for kernel invocation with triple angled brackets : <<< threads, blocks >>>, and that’s it.

      It could probably be made easily by starting from the C++ definitions. I would do it myself if I could find that.

      Does anyone know anything about this?

      1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones
        last edited by

        That old list was out of date, and was recently removed from the hosting site. The UDL docs page is being updated to remove that link (and provide other useful info).

        Regarding your additions, just Settings > Style Configurator > C++ > INSTRUCTION WORD and add the keywords to the user-defined keywords. For the angle brackets, you’ll either have to treat them as INSTRUCTION WORD or TYPE WORD, or use something like the EnhanceAnyBuiltinLexer.py that @Ekopalypse shares: EnhanceAnyBuiltinLexer

        Gomez AddamsG 1 Reply Last reply Reply Quote 3
        • Gomez AddamsG Offline
          Gomez Addams @PeterJones
          last edited by

          Thank you for your advice. I managed to determine where that data was saved and put the stuff in there. I think the user-defined options would be a better place for it, as you suggested, but its working OK now so I am not going to move it.

          1 Reply Last reply Reply Quote 2

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors