Skip to content

Add RawKernel.compile() method#1889

Closed
leofang wants to merge 6 commits intocupy:masterfrom
leofang:master
Closed

Add RawKernel.compile() method#1889
leofang wants to merge 6 commits intocupy:masterfrom
leofang:master

Conversation

@leofang
Copy link
Copy Markdown
Member

@leofang leofang commented Dec 12, 2018

As discussed in #1657, a .compile() method is desired. I implemented it and added two tests.

A few words on this implementation: while it functions as requested, upon reflection I feel the compile() method should belong to the module level instead of the RawKernel class. The later implies that a CUDA kernel, instead of a module, is returned and used. However, I don't see any other way to do so without breaking backward compatibility, so this is a design choice I leave for you to worry in the future. Should you have any comments or suggestions, I'm more than happy to discuss and make changes.

Thanks.

@beam2d beam2d self-assigned this Dec 13, 2018
@kmaehashi
Copy link
Copy Markdown
Member

Thanks @leofang! Will take a look.

@beam2d beam2d assigned kmaehashi and beam2d and unassigned beam2d and kmaehashi Dec 14, 2018
@okuta okuta added the cat:feature New features/APIs label Dec 24, 2018
@okuta okuta added this to the v6 milestone Dec 24, 2018
@leofang
Copy link
Copy Markdown
Member Author

leofang commented Jan 15, 2019

Please block this PR by #1941. If the backend is changeable, RawKernel.compile() will need to take an extra argument backend='nvrtc'.

@dnabanita7
Copy link
Copy Markdown

Can I take up on this issue

@leofang
Copy link
Copy Markdown
Member Author

leofang commented Aug 19, 2019

This PR is superseded by #2389.

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

Labels

cat:feature New features/APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants