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
4a180009
Commit
4a180009
authored
May 20, 2025
by
Pan Zezhong
Browse files
issue/191/fix 修正random sample workspace返回result处理方式
parent
2f47d773
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/infiniop/ops/random_sample/cuda/random_sample_cuda.cu
src/infiniop/ops/random_sample/cuda/random_sample_cuda.cu
+6
-4
No files found.
src/infiniop/ops/random_sample/cuda/random_sample_cuda.cu
View file @
4a180009
...
@@ -26,10 +26,12 @@ infiniStatus_t Descriptor::create(
...
@@ -26,10 +26,12 @@ infiniStatus_t Descriptor::create(
auto
info
=
result
.
take
();
auto
info
=
result
.
take
();
size_t
workspace_size
;
size_t
workspace_size
;
#define CASE_P(CASE, Tidx, Tval) \
#define CASE_P(CASE, Tidx, Tval) \
case CASE: \
case CASE: { \
workspace_size = calculateWorkspace<Tidx, Tval>(info.n); \
auto workspace_result = calculateWorkspace<Tidx, Tval>(info.n); \
break
CHECK_RESULT(workspace_result); \
workspace_size = workspace_result.take(); \
} break
#define CASE_I(CASE, Tidx) \
#define CASE_I(CASE, Tidx) \
case CASE: \
case CASE: \
...
...
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