Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
infinicore
Commits
a563f3de
Commit
a563f3de
authored
Feb 28, 2025
by
zhangyue
Browse files
issue/25: T const to const T
parent
c9dbc0ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/infiniop/devices/kunlun/common_kunlun.h
src/infiniop/devices/kunlun/common_kunlun.h
+1
-1
src/infiniop/ops/matmul/kunlun/matmul_kunlun.cc
src/infiniop/ops/matmul/kunlun/matmul_kunlun.cc
+2
-2
No files found.
src/infiniop/devices/kunlun/common_kunlun.h
View file @
a563f3de
...
@@ -30,7 +30,7 @@ struct InfiniopKunlunHandle {
...
@@ -30,7 +30,7 @@ struct InfiniopKunlunHandle {
};
};
template
<
typename
T
>
template
<
typename
T
>
void
use_xdnn
(
std
::
shared_ptr
<
Pool
<
xdnnHandle_t
>>
&
pool
,
KunlunStream_t
stream
,
T
const
&
f
)
{
void
use_xdnn
(
std
::
shared_ptr
<
Pool
<
xdnnHandle_t
>>
&
pool
,
KunlunStream_t
stream
,
const
T
&
f
)
{
auto
handle
=
pool
->
pop
();
auto
handle
=
pool
->
pop
();
if
(
!
handle
)
{
if
(
!
handle
)
{
*
handle
=
xdnn
::
create_context
();
*
handle
=
xdnn
::
create_context
();
...
...
src/infiniop/ops/matmul/kunlun/matmul_kunlun.cc
View file @
a563f3de
...
@@ -44,8 +44,8 @@ void calculate(
...
@@ -44,8 +44,8 @@ void calculate(
infiniDtype_t
dtype
,
infiniDtype_t
dtype
,
void
*
c
,
void
*
c
,
float
beta
,
float
beta
,
void
const
*
a
,
const
void
*
a
,
void
const
*
b
,
const
void
*
b
,
float
alpha
,
float
alpha
,
KunlunStream_t
stream
)
{
KunlunStream_t
stream
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment