forked from JuliaGPU/oneAPI.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
MKL: Level-1 (scal) primitive support #1
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
Open
kballeda
wants to merge
32
commits into
pengtu:master
Choose a base branch
from
kballeda:l1_scal
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
664480c
cuBlas level 1 method - scal supported
kballeda 5180b9b
scal test case updated in onemkl.jl
kballeda 1307b8d
NITS - cleanup
kballeda 86f9dc7
indentation NITS
kballeda 57495e9
updated with scal - deps
kballeda 28f245f
indentation fixes
kballeda 86591f5
NITS
kballeda c49620f
NITS
kballeda 990300a
cleanup onemkl.jl
kballeda 1e164db
updated with rmul! and testf usage
kballeda 139de1c
NITS
kballeda 23943bb
testf used for cpu/gpu testing.
kballeda b51b870
NITS - clenaup & included int specific calls to rmul! diverted to
kballeda ab0abb2
wrapper alpha turns elttype and support all combinationswq
kballeda d5a58e0
NITS
kballeda c39e90c
support for Cs, Zd configs of scal function
kballeda 0a17298
updated with staticcast complex alpha
kballeda e0aa24e
added onestridedarray
kballeda b9a7d29
enable tests of complex tye
kballeda 645dad7
Merge branch 'master' into l1_scal
kballeda 1c1b206
updated with Csscal and Zdscal test enabled
kballeda d423806
NITS
kballeda 071f69e
NITS
kballeda 8168b50
Merge branch 'master' into l1_scal
kballeda 7be9df6
NITS
kballeda 038252f
NITS
kballeda d07339e
Cleanup of tests
kballeda cbbd3a4
Instead of isapprox use compare op
kballeda af68c99
Bug fix: disable f16 check as it is not supported (CI crash)
kballeda 7dd2fa3
Merge branch 'master' into l1_scal
kballeda 41db9d5
Merge branch 'master' into l1_scal
kballeda 578c300
use force flush instead of wait()
kballeda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| using oneAPI.oneMKL | ||
| using LinearAlgebra | ||
|
|
||
| m = 20 | ||
| n = 35 | ||
| k = 13 | ||
|
|
||
|
|
||
| ######################## | ||
| @testset "level 1" begin | ||
| @testset for T in eltypes | ||
| A = rand(T, m) | ||
| gpuA = oneArray(A) | ||
| if T === Float32 | ||
| oneMKL.scal!(m, 5f0, gpuA) | ||
| else | ||
| oneMKL.scal!(m, 5.0, gpuA) | ||
| end | ||
| _A = Array(gpuA) | ||
| @test isapprox(A .* 5, _A) | ||
| end | ||
| end |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.