-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add support for VisualStudio and Cuda #22
Comments
It is a good new for me to support VS compile. But when i test use my enrironment VisualStudio 2015 64, still some errors. |
I send you my VS2015 project, i can compile normally? vs2019 can open vs2015 project, you only open /source/BlackCat_Tensors.sln,then compile it, whether it can compile normally? |
I've just downloaded VS2015. I will see what changes need to be made. |
Hi, VS2015 does not support some of the features required to compile this code. Constexpr expressions are used quite frequently and supporting VS15 would require changing most of the code. The code does compile on VS2019 Community edition. |
Thank you for reporting that bug! The code works as expected in Release mode though I will try to fix that bug. |
Hi, I simply replaced "BC::memory::atomic_shared_ptr" with 'std::shared_ptr' Should work in debug mode, though I recommend compiling in release mode as it is very slow in debug mode. Fixed with: Side note: |
OpenBLAS does not always work with other programs that use open mp. #define BC_NO_OPENMP before including "BlackCat_Tensors.h" |
Alternatively according to https://github.com/xianyi/OpenBLAS/wiki/faq "If the application is parallelized by OpenMP, please build OpenBLAS with USE_OPENMP=1" |
I try: |
Could you sent me you Openblas file (include lib) in windows to me, let me have a try?? |
I will see what I can do. |
The crashed is still, when I seted openblas OpenMP is true, And Set #define BC_NO_OPENMP |
Intel MKL If you define BC_NO_OPENMP than all open-mp features should be disabled. In line 194 in BlackCat_Common.h you can see the features being disabled. |
Yes, I konw! But when i set openmp is true, compiles it appear some errors, it should not appear! |
I install w_mkl_2019.4.245.exe,then what should i do ? which xx.lib file is additional dependencies? |
I test the openblas Independently,it work normally! I create a new project, I cmake the OpenBlas,then include the "lapack-netlib\CBLAS\include" in my project and link the "lib\RELEASE\openblas.lib" and "lib\DEBUG\openblas.lib" to my new project, then i run the below code, it work normally: int test()
} |
But your project when i run the cblas_dgemm, it crashs, line 182 in host.h. This is my openblas include file and .lib file (cmake openblas, the get them, vs2019, windows10), you can hava a try, to find where is wrong? |
I will look into it. |
I use the OpenMathLib/OpenBLAS#805 openblas036-win64.zip it works normally. So the problem is the openlabs, then you can focus on the net crnn and lstm! Thank you! |
No description provided.
The text was updated successfully, but these errors were encountered: