Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
4ab3e3db
Commit
4ab3e3db
authored
Aug 19, 2025
by
zhuwenwen
Browse files
fix cudaDeviceProp
parent
a4b438d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
csrc/cuda_compat.h
csrc/cuda_compat.h
+6
-3
No files found.
csrc/cuda_compat.h
View file @
4ab3e3db
...
...
@@ -12,9 +12,12 @@ struct Utils {
if
(
!
is_cached
)
{
int
device_id
;
cudaDeviceProp
deviceProp
;
cudaGetDevice
(
&
device_id
);
cudaGetDeviceProperties
(
&
deviceProp
,
device_id
);
// cudaDeviceProp deviceProp;
// cudaGetDevice(&device_id);
// cudaGetDeviceProperties(&deviceProp, device_id);
hipDeviceProp_t
deviceProp
;
hipGetDevice
(
&
device_id
);
hipGetDeviceProperties
(
&
deviceProp
,
device_id
);
result
=
deviceProp
.
warpSize
;
is_cached
=
true
;
...
...
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