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
cfaa6af8
Commit
cfaa6af8
authored
Apr 30, 2025
by
goldenfox2025
Browse files
issue/180:完全删除多与代码且整理格式
parent
64b5f7c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
18 deletions
+14
-18
include/infiniop/ops/mul.h
include/infiniop/ops/mul.h
+5
-5
src/infiniop-test/src/ops/clip.cpp
src/infiniop-test/src/ops/clip.cpp
+9
-9
src/infiniop/ops/clip/cuda/clip_cuda.cuh
src/infiniop/ops/clip/cuda/clip_cuda.cuh
+0
-4
No files found.
include/infiniop/ops/mul.h
View file @
cfaa6af8
...
...
@@ -6,10 +6,10 @@
typedef
struct
InfiniopDescriptor
*
infiniopMulDescriptor_t
;
__C
__export
infiniStatus_t
infiniopCreateMulDescriptor
(
infiniopHandle_t
handle
,
infiniopMulDescriptor_t
*
desc_ptr
,
infiniopTensorDescriptor_t
c
,
infiniopTensorDescriptor_t
a
,
infiniopTensorDescriptor_t
b
);
infiniopMulDescriptor_t
*
desc_ptr
,
infiniopTensorDescriptor_t
c
,
infiniopTensorDescriptor_t
a
,
infiniopTensorDescriptor_t
b
);
__C
__export
infiniStatus_t
infiniopGetMulWorkspaceSize
(
infiniopMulDescriptor_t
desc
,
size_t
*
size
);
...
...
@@ -20,7 +20,7 @@ __C __export infiniStatus_t infiniopMul(infiniopMulDescriptor_t desc,
const
void
*
a
,
const
void
*
b
,
void
*
stream
);
__C
__export
infiniStatus_t
infiniopDestroyMulDescriptor
(
infiniopMulDescriptor_t
desc
);
#endif
src/infiniop-test/src/ops/clip.cpp
View file @
cfaa6af8
...
...
@@ -44,10 +44,10 @@ std::shared_ptr<infiniop_test::Result> Test::run(
auto
max_val
=
_attributes
->
max_val
->
to
(
device
,
device_id
);
auto
y
=
_attributes
->
y
->
to
(
device
,
device_id
);
CHECK_OR
(
infiniopCreateClipDescriptor
(
handle
,
&
op_desc
,
y
->
desc
(),
x
->
desc
(),
min_val
->
desc
(),
max_val
->
desc
()),
y
->
desc
(),
x
->
desc
(),
min_val
->
desc
(),
max_val
->
desc
()),
return
TEST_FAILED
(
OP_CREATION_FAILED
,
"Failed to create clip descriptor."
));
size_t
workspace_size
;
CHECK_OR
(
infiniopGetClipWorkspaceSize
(
op_desc
,
&
workspace_size
),
...
...
@@ -56,11 +56,11 @@ std::shared_ptr<infiniop_test::Result> Test::run(
CHECK_OR
(
infinirtMalloc
(
&
workspace
,
workspace_size
),
return
TEST_FAILED
(
OP_CREATION_FAILED
,
"Failed to allocate workspace."
));
CHECK_OR
(
infiniopClip
(
op_desc
,
workspace
,
workspace_size
,
y
->
data
(),
x
->
data
(),
min_val
->
data
(),
max_val
->
data
(),
nullptr
),
y
->
data
(),
x
->
data
(),
min_val
->
data
(),
max_val
->
data
(),
nullptr
),
return
TEST_FAILED
(
OP_EXECUTION_FAILED
,
"Failed during execution."
));
try
{
...
...
src/infiniop/ops/clip/cuda/clip_cuda.cuh
View file @
cfaa6af8
...
...
@@ -6,8 +6,4 @@
ELEMENTWISE_DESCRIPTOR
(
clip
,
cuda
)
namespace
op
::
clip
::
cuda
{
}
// namespace op::clip::cuda
#endif // __CLIP_CUDA_API_H__
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