Skip to content

Segment fault before main #1113

Closed
Closed
@hedaoyuan

Description

@hedaoyuan

当前Paddle用的是CUDA Runtime API,libcudart.so通过GetCudartDsoHandle函数被加载,但是由于libcudart.so是在main函数之前被加载的,GetCudartDsoHandle中有调用glog相关的代码,而glog在initMain中才被初始化,所有会导致运行错误。

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions