Skip to content
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

Merged
merged 4 commits into from
May 13, 2021
Merged

Conversation

ali-ramadhan
Copy link
Contributor

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.

@vchuravy
Copy link
Member

bors try

bors bot added a commit that referenced this pull request May 11, 2021
@vchuravy
Copy link
Member

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.

@bors
Copy link
Contributor

bors bot commented May 11, 2021

@vchuravy
Copy link
Member

Can you also add a test case for pow?

@vchuravy
Copy link
Member

bors try

bors bot added a commit that referenced this pull request May 11, 2021
@ali-ramadhan
Copy link
Contributor Author

Not sure if it's what you had in mind but I added a test for ^ that's similar to the literal pow test.

@vchuravy
Copy link
Member

bors try

bors bot added a commit that referenced this pull request May 12, 2021
@vchuravy
Copy link
Member

bors r+

@bors bors bot merged commit 1496f4e into JuliaGPU:master May 13, 2021
vchuravy pushed a commit that referenced this pull request May 13, 2021
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>
@vchuravy vchuravy mentioned this pull request May 13, 2021
@@ -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)
Copy link
Member

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

bors bot added a commit that referenced this pull request May 14, 2021
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>
bors bot added a commit that referenced this pull request May 15, 2021
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants