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
tianlh
LightGBM-DCU
Commits
e601565d
Commit
e601565d
authored
Sep 22, 2025
by
Jeff Daily
Browse files
lint
parent
06741cca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
include/LightGBM/cuda/cuda_rocm_interop.h
include/LightGBM/cuda/cuda_rocm_interop.h
+4
-4
No files found.
include/LightGBM/cuda/cuda_rocm_interop.h
View file @
e601565d
...
@@ -51,15 +51,15 @@
...
@@ -51,15 +51,15 @@
static
inline
constexpr
int
WARP_SIZE_INTERNAL
()
{
static
inline
constexpr
int
WARP_SIZE_INTERNAL
()
{
#if defined(__GFX9__)
#if defined(__GFX9__)
return
64
;
return
64
;
#else // __GFX9__
#else
// __GFX9__
return
32
;
return
32
;
#endif // __GFX9__
#endif
// __GFX9__
}
}
#define WARPSIZE (WARP_SIZE_INTERNAL())
#define WARPSIZE (WARP_SIZE_INTERNAL())
#else // __HIP_PLATFORM_AMD__
#else
// __HIP_PLATFORM_AMD__
// CUDA warpSize is not a constexpr, but always 32
// CUDA warpSize is not a constexpr, but always 32
#define WARPSIZE 32
#define WARPSIZE 32
#endif
#endif
#endif // USE_CUDA || USE_ROCM
#endif
// USE_CUDA || USE_ROCM
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