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
18be11fd
Unverified
Commit
18be11fd
authored
Mar 16, 2026
by
xjx
Committed by
GitHub
Mar 16, 2026
Browse files
[BUGFIX]fix CUDA OOM ERROR : invalid argument at cumem_allocator.cpp:119 (#35594)
Signed-off-by:
xjx
<
493337577@qq.com
>
parent
8d8855fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
csrc/cumem_allocator.cpp
csrc/cumem_allocator.cpp
+8
-6
No files found.
csrc/cumem_allocator.cpp
View file @
18be11fd
...
...
@@ -109,16 +109,18 @@ void create_and_map(unsigned long long device, ssize_t size, CUdeviceptr d_mem,
#ifndef USE_ROCM
int
flag
=
0
;
CU
DA_CHECK
(
cuDeviceGetAttribute
(
CU
result
rdma_result
=
cuDeviceGetAttribute
(
&
flag
,
CU_DEVICE_ATTRIBUTE_GPU_DIRECT_RDMA_WITH_CUDA_VMM_SUPPORTED
,
device
));
if
(
flag
)
{
// support GPUDirect RDMA if possible
device
);
if
(
rdma_result
==
CUDA_SUCCESS
&&
flag
)
{
// support GPUDirect RDMA if possible
prop
.
allocFlags
.
gpuDirectRDMACapable
=
1
;
}
int
fab_flag
=
0
;
CUDA_CHECK
(
cuDeviceGetAttribute
(
&
fab_flag
,
CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_FABRIC_SUPPORTED
,
device
));
if
(
fab_flag
)
{
// support fabric handle if possible
CUresult
fab_result
=
cuDeviceGetAttribute
(
&
fab_flag
,
CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_FABRIC_SUPPORTED
,
device
);
if
(
fab_result
==
CUDA_SUCCESS
&&
fab_flag
)
{
// support fabric handle if possible
prop
.
requestedHandleTypes
=
CU_MEM_HANDLE_TYPE_FABRIC
;
}
#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