Skip to content
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

Set env into C-API library. #6520

Closed
gongweibao opened this issue Dec 12, 2017 · 1 comment
Closed

Set env into C-API library. #6520

gongweibao opened this issue Dec 12, 2017 · 1 comment
Assignees

Comments

@gongweibao
Copy link
Contributor

gongweibao commented Dec 12, 2017

Reference: #4813 (comment) and #5280 (comment)

Now, we need to set env variables MKL_NUM_THREADS and OMP_NUM_THREADS before running C-API program to make the best performance of MKLML.

How to merge these into C-API library and so user don't concern about it?

@luotao1
Copy link
Contributor

luotao1 commented Dec 12, 2017

Can you update https://github.com/gongweibao/testcapi and tell us how to use paddle_capi_shared for build.sh at first?

/opt/compiler/gcc-4.8.2/sbin/../lib/gcc/x86_64-baidu-linux-gnu/4.8.2/../../../../x86_64-baidu-linux-gnu/bin/ld: cannot find -lpaddle_capi_shared
collect2: error: ld returned 1 exit status
make[2]: *** [exeModel] Error 1
make[1]: *** [CMakeFiles/exeModel.dir/all] Error 2
make: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants