-
Notifications
You must be signed in to change notification settings - Fork 22
EIG combine existing MKL and non-existing SYCL to one kernel #112
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #112 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 19 19
Lines 1240 1242 +2
Branches 329 330 +1
======================================
- Misses 1240 1242 +2
Continue to review full report at Codecov.
|
dpnp/backend/custom_kernels.cpp
Outdated
} | ||
else | ||
{ | ||
// TODO: implement SYCL kernel for int/long input |
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.
must throw an exception
dpnp/backend/backend_iface_fptr.cpp
Outdated
fmap[DPNPFuncName::DPNP_FN_EIG][eft_LNG][eft_LNG] = {eft_DBL, (void*)mkl_lapack_syevd_c<double>}; | ||
fmap[DPNPFuncName::DPNP_FN_EIG][eft_FLT][eft_FLT] = {eft_FLT, (void*)mkl_lapack_syevd_c<float>}; | ||
fmap[DPNPFuncName::DPNP_FN_EIG][eft_DBL][eft_DBL] = {eft_DBL, (void*)mkl_lapack_syevd_c<double>}; | ||
fmap[DPNPFuncName::DPNP_FN_EIG][eft_INT][eft_INT] = {eft_DBL, (void*)custom_lapack_syevd_c<double>}; |
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.
Don't understand yet how it worked before. In double
variant we provide a kernel to the user with int
input? it should not work.
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.
It doesn't worked before, eig
function supports only float
and double
.
@densmirn added int
and long
types in map here
https://github.com/IntelPython/dpnp/pull/86/files#diff-cc4d5932a758a21f53df6d834b67eab0R313-R314
Copy-paste mistake, I think.
examples/example7.cpp
Outdated
@@ -28,7 +28,7 @@ int main(int, char**) | |||
array[size * i + i] = i + 1; | |||
} | |||
|
|||
mkl_lapack_syevd_c<double>(array, result, size); | |||
custom_lapack_syevd_c<double>(array, result, size); |
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.
could you please change this example input datatypes to int
(at line 14)?
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.
Don't spend more time on this code. I'll take care of it.
Got it, won't prepare patch for this. |
@densmirn @shssf |
4b0188f
to
7bdf3f6
Compare
7bdf3f6
to
b867789
Compare
No description provided.