-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[GPU] Allocate output mem using virtual memory in Windows even if physical memory is full #30106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GPU] Allocate output mem using virtual memory in Windows even if physical memory is full #30106
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -165,7 +165,6 @@ bool ocl_engine::check_allocatable(const layout& layout, allocation_type type) { | |||
GPU_DEBUG_COUT << "[Warning] [GPU] Exceeded max size of memory allocation: " << "Required " << layout.bytes_count() << " bytes, already occupied : " | |||
<< used_mem << " bytes, but available memory size is " << get_max_memory_size() << " bytes" << std::endl; | |||
GPU_DEBUG_COUT << "Please note that performance might drop due to memory swap." << std::endl; | |||
return false; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
random spot) could you check additional assertion whether the primitive has output buffer when executed? this would be helpful for future troubleshoot of such issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added assertions at set_arguments_impl() which allocated memory is necessary
@@ -165,7 +165,6 @@ bool ocl_engine::check_allocatable(const layout& layout, allocation_type type) { | |||
GPU_DEBUG_COUT << "[Warning] [GPU] Exceeded max size of memory allocation: " << "Required " << layout.bytes_count() << " bytes, already occupied : " | |||
<< used_mem << " bytes, but available memory size is " << get_max_memory_size() << " bytes" << std::endl; | |||
GPU_DEBUG_COUT << "Please note that performance might drop due to memory swap." << std::endl; | |||
return false; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
random spot) PR title is difficult to understand. Could you rewrite it to express what it is doing or why it matters?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated PR title
bd7fc73
to
9e045ae
Compare
7089381
to
3de6c74
Compare
Details:
Tickets: