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
c3946bf0
Commit
c3946bf0
authored
Mar 03, 2026
by
wooway777
Browse files
issue/1032 - fix block size on iluvatar
parent
abd45713
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/infiniop/ops/swiglu/nvidia/swiglu_nvidia_cuda.cu
src/infiniop/ops/swiglu/nvidia/swiglu_nvidia_cuda.cu
+5
-3
No files found.
src/infiniop/ops/swiglu/nvidia/swiglu_nvidia_cuda.cu
View file @
c3946bf0
...
@@ -106,10 +106,12 @@ infiniStatus_t Descriptor::calculate(
...
@@ -106,10 +106,12 @@ infiniStatus_t Descriptor::calculate(
return INFINI_STATUS_BAD_TENSOR_DTYPE; \
return INFINI_STATUS_BAD_TENSOR_DTYPE; \
}
}
if
(
_opaque
->
internal
->
maxThreadsPerBlock
()
==
CUDA_BLOCK_SIZE_1024
)
{
if
(
_opaque
->
internal
->
maxThreadsPerBlock
()
==
CUDA_BLOCK_SIZE_512
)
{
CALCULATE_SWIGLU_CUDA_WITH_BLOCK_SIZE
(
CUDA_BLOCK_SIZE_1024
)
}
else
if
(
_opaque
->
internal
->
maxThreadsPerBlock
()
==
CUDA_BLOCK_SIZE_512
)
{
CALCULATE_SWIGLU_CUDA_WITH_BLOCK_SIZE
(
CUDA_BLOCK_SIZE_512
)
CALCULATE_SWIGLU_CUDA_WITH_BLOCK_SIZE
(
CUDA_BLOCK_SIZE_512
)
}
else
if
(
_opaque
->
internal
->
maxThreadsPerBlock
()
==
CUDA_BLOCK_SIZE_1024
)
{
CALCULATE_SWIGLU_CUDA_WITH_BLOCK_SIZE
(
CUDA_BLOCK_SIZE_1024
)
}
else
if
(
_opaque
->
internal
->
maxThreadsPerBlock
()
==
CUDA_BLOCK_SIZE_2048
)
{
CALCULATE_SWIGLU_CUDA_WITH_BLOCK_SIZE
(
CUDA_BLOCK_SIZE_2048
)
}
else
if
(
_opaque
->
internal
->
maxThreadsPerBlock
()
==
CUDA_BLOCK_SIZE_4096
)
{
}
else
if
(
_opaque
->
internal
->
maxThreadsPerBlock
()
==
CUDA_BLOCK_SIZE_4096
)
{
CALCULATE_SWIGLU_CUDA_WITH_BLOCK_SIZE
(
CUDA_BLOCK_SIZE_4096
)
CALCULATE_SWIGLU_CUDA_WITH_BLOCK_SIZE
(
CUDA_BLOCK_SIZE_4096
)
}
else
{
}
else
{
...
...
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