Skip to content

Refactoring kernel code into .cu/.c files #375

Open

Description

@jakirkham

In a few cases, we have needed to include kernel code in strings in Python. It would be good to start refactoring this out into separate .cu/.c files that we load instead. This has the benefit that .cu/.c files are more familiar to developers and various tooling (linters/compilers/etc.). Also it can potentially be used in C/C++ code directly. Making this change could help with general maintainability & usability of the codebase going forward.

Originally posted by @jakirkham in #317 (comment)

Activity

  1. jakirkham commented on Nov 30, 2022

    @jakirkham
    MemberAuthor

    As one example of this kind of change, please see commit ( 2608b2e ). There are some other CUDA or C/C++ codes in Python strs. It would likely be simple to refactor these out into .cu or .c/.cpp.

    A separate, but related question would be how we would like to use these on the C++ side.

    Edit: Here are a few more examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementImproves an existing functionality

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions