mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-12-24 13:28:13 +08:00
[Others]Prevent core dumps during Paddle version check (#5657)
This commit is contained in:
@@ -351,6 +351,9 @@ def is_paddle_support_new_h2d():
|
||||
|
||||
code = """
|
||||
import paddle
|
||||
import resource
|
||||
|
||||
resource.setrlimit(resource.RLIMIT_CORE, (0, 0))
|
||||
try:
|
||||
dst = paddle.zeros([2, 4], dtype='bfloat16')
|
||||
src = paddle.ones([2, 2], dtype='bfloat16', device='cpu')
|
||||
|
||||
Reference in New Issue
Block a user