How to build the single thread version?

I heard that we can use the single thread version.
And somehow make it multi-thread in application level.

听说可以这样多线程跑?:
“多线程自己实现,xg编译的时候不要开启多线程支持就行了,不需要修改它的源码”

After disable openmp, my multi-thread program throw error:

segment fault…

add lock and run ok~