PaddlePaddle / Anakin

High performance Cross-platform Inference-engine, you could run Anakin on x86-cpu,arm, nv-gpu, amd-gpu,bitmain and cambricon devices.
https://anakin.baidu.com/
Apache License 2.0
531 stars 135 forks source link

Abstract away exposed openmp dependencies #485

Closed uraj closed 5 years ago

uraj commented 5 years ago

Some code has explicit dependencies on omp_* functions. Replace them with anakin abstractions defined in saber/funcs/impl/x86/anakin_thread.h.

throneclay commented 5 years ago

代码里的宏定义的omp的部分直接忽略吗?编译是否会有影响

uraj commented 5 years ago

代码里的宏定义的omp的部分直接忽略吗?编译是否会有影响

我这边已经测试过x86的编译,没有问题。封装openmp的宏定义之前已经有了,只是很多代码没有用封装的接口而是直接用的omp函数。