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

Precompilated Library C/C++-Api #676

Open
Armin234 opened this issue Jul 7, 2020 · 6 comments
Open

Precompilated Library C/C++-Api #676

Armin234 opened this issue Jul 7, 2020 · 6 comments

Comments

@Armin234
Copy link

Armin234 commented Jul 7, 2020

Hi,
are there precompilated libs of the C/C++API for Windows ?

@TomonobuTsujikawa
Copy link
Contributor

Hi,
There is no precompiled libraries now, but we will consider releasing libraries.
I will let you know when it is released.

@TomonobuTsujikawa
Copy link
Contributor

We're very sorry for late notice.
There is pre-compiled libraries including Windows platform.

https://nnabla.org/install/#cpplib_list

Please use a library that matches the version of nnabla.

@Armin234
Copy link
Author

Hi,
thanks for the precompiled libraries.
I already tryed your c++ example with the precompiled "nnabla-cpplib-1.20.1-win64.zip", but at the line

nbla::Context cpu_ctx{ {"cpu:float"}, "CpuCachedArray", "0" };

I get always an "std::bad_alloc" exception, and I have no idea what's the problem ?

@TomonobuTsujikawa
Copy link
Contributor

Thank you for checking, and we're sorry that it doesn't work properly.
We will confirm in some environment, please let us some time.

@Armin234
Copy link
Author

Hi TomonobuTsujikawa,
I made some more test and it seems to have to do with the "Debug Mode" I used in Visual Studio. When I compile my application in "Release Mode" the exception didn't appear.

@TomonobuTsujikawa
Copy link
Contributor

Thank you for checking this issue!
We found that STL container does not pass correctly from cpplib to python on debug mode.
On our environment, access violation is occurred in _cpu_array_classes().

Please let us consider how we can overcome this issue (or workaround).

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