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

Build Steps for building c++ dll and libs on windows #42

Closed
AyushP123 opened this issue Sep 24, 2018 · 4 comments
Closed

Build Steps for building c++ dll and libs on windows #42

AyushP123 opened this issue Sep 24, 2018 · 4 comments

Comments

@AyushP123
Copy link

Hi,
Thanks a lot for sharing all the dlls and libs for windows. I wanted to know build steps that you used for building tensorflow c++ dlls and libs for windows 10 with tensorflow version 1.10, cuda 9.2 and cudnn 7.2.

@fo40225
Copy link
Owner

fo40225 commented Sep 24, 2018

run vs2017 x64 native tools commands command prompt as admin

cmake .. -G "Visual Studio 15 2017" -A x64 -T host=x64 ^
-DCMAKE_BUILD_TYPE=Release ^
-DSWIG_EXECUTABLE=C:\Users\User\swigwin-3.0.10\swig.exe ^
-Dtensorflow_BUILD_CC_EXAMPLE=OFF ^
-Dtensorflow_BUILD_SHARED_LIB=ON ^
-Dtensorflow_ENABLE_GPU=ON ^
-Dtensorflow_CUDA_VERSION=9.2 ^
-DCUDA_HOST_COMPILER="C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.15.26726\bin\Hostx64\x64" 

cmake --build . --target INSTALL --config Release -- /m /fileLogger

result in C:\Program Files (x86)\tensorflow

and you should use tf 1.8, because #30

@AyushP123
Copy link
Author

Is visual studio 2017 preferred or visual studio 2015 will also do??

@fo40225
Copy link
Owner

fo40225 commented Sep 24, 2018

vs2015 or vs2017 is ok

@AyushP123
Copy link
Author

Hi,
Thanks a lot for your response. Can you also point me to an example for usage of the dll and lib using the header files to load and run inference.

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

2 participants