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
change
sglang
Commits
ce4ecba4
Unverified
Commit
ce4ecba4
authored
Apr 23, 2025
by
Yineng Zhang
Committed by
GitHub
Apr 23, 2025
Browse files
fix: only compile ApplyTokenBitmaskInplace cu124+ (#5686)
parent
b1f6d89b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
sgl-kernel/csrc/grammar/apply_token_bitmask_inplace_cuda.cu
sgl-kernel/csrc/grammar/apply_token_bitmask_inplace_cuda.cu
+3
-0
No files found.
sgl-kernel/csrc/grammar/apply_token_bitmask_inplace_cuda.cu
View file @
ce4ecba4
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
#include <ATen/cuda/CUDAContext.h>
#include <ATen/cuda/CUDAContext.h>
// clang-format on
// clang-format on
#if defined CUDA_VERSION && CUDA_VERSION >= 12040
#ifndef CUDART_INF_FP16
#ifndef CUDART_INF_FP16
#define CUDART_INF_FP16 __ushort_as_half((unsigned short)0x7C00U)
#define CUDART_INF_FP16 __ushort_as_half((unsigned short)0x7C00U)
#endif
#endif
...
@@ -249,3 +251,4 @@ void ApplyTokenBitmaskInplace(at::Tensor logits, at::Tensor bitmask, at::optiona
...
@@ -249,3 +251,4 @@ void ApplyTokenBitmaskInplace(at::Tensor logits, at::Tensor bitmask, at::optiona
break
;
break
;
}
}
}
}
#endif
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