-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop overdubbing CUDA math functions #249
Conversation
bors try |
As I mentioned on slack, things are a bit more complicated since we don't want to overdub these, but we still have to use Cassette for the time being. |
tryBuild failed: |
This reverts commit da035c1.
Can you also add a test case for pow? |
bors try |
Not sure if it's what you had in mind but I added a test for |
bors try |
bors r+ |
249: Stop overdubbing CUDA math functions r=vchuravy a=ali-ramadhan I think with CUDA.jl v3 there is no longer a need to overdub/rewrite CUDA specific math functions. If anything `CUDA.pow` doesn't exist anymore. Co-authored-by: Ali Ramadhan <ali.hh.ramadhan@gmail.com> Co-authored-by: ali.hh.ramadhan@gmail.com <ali.hh.ramadhan@gmail.com>
@@ -28,6 +32,11 @@ function compiler_testsuite() | |||
@test !any(stmt->(stmt isa Expr) && stmt.head == :invoke, CI.code) | |||
end | |||
|
|||
let (CI, rt) = @ka_code_typed square(CPU())(zeros(1), zeros(1), ndrange=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed to late that this is just CPU()
and thus doesn't check the CUDAKernels implementation
251: Backport #249 r=vchuravy a=vchuravy Backport #249. @ali-ramadhan I noticed that you only tested `CPU()` execution, but the changes are limited to CUDAKernels. Co-authored-by: bors[bot] <26634292+bors[bot]@users.noreply.github.com> Co-authored-by: Valentin Churavy <vchuravy@users.noreply.github.com>
251: Backport #249 r=vchuravy a=vchuravy Backport #249. @ali-ramadhan I noticed that you only tested `CPU()` execution, but the changes are limited to CUDAKernels. Co-authored-by: bors[bot] <26634292+bors[bot]@users.noreply.github.com> Co-authored-by: Valentin Churavy <vchuravy@users.noreply.github.com>
I think with CUDA.jl v3 there is no longer a need to overdub/rewrite CUDA specific math functions.
If anything
CUDA.pow
doesn't exist anymore.