You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include<complex>
#defineLAPACK_COMPLEX_CUSTOM
#definelapack_complex_float std::complex<float>
#definelapack_complex_double std::complex<double>
#include<Python.h>
#include<numpy/arrayobject.h>
#include<lapacke.h>/* DGESVD prototype */extern"C"voidLAPACK_dgesvd( char* jobu, char* jobvt, int* m, int* n, double* a,
int* lda, double* s, double* u, int* ldu, double* vt, int* ldvt,
double* work, int* lwork, int* info )
(3) Change the setup.py file to :
else:
# assume linux otherwise, unless we support Windows in the future...print("Platform Detection: Linux. Link to liblapacke...")
extra_link_args= []
include_dirs= [(numpy.distutils.misc_util.get_numpy_include_dirs() +
['/usr/include/']), "your_header_directory"] #Change the header directorylibraries= ['liblapacke', 'liblapack']
library_dirs= ['D:/tools/LAPACK_3.1.1_for_Windows_VS/lib/x64'] #This is the lib directory
(4) Run: python setup.py install
(5) Put the dll files like this
The text was updated successfully, but these errors were encountered:
happydpc
changed the title
Solved: windows compile
Windows compiled ok, but can't run
Jul 14, 2020
In my knowledge, the best way to install on windows is disable compile variance_reduction. Current version of setup.py allow to achieve this purpose by set env LIBACT_BUILD_VARIANCE_REDUCTION=0.
modified_files.zip
Here are the steps(All the files are in the zip file):
(1) Download the liblapack.lib and liblapacke.lib , and headers LAPACKE header file, LAPACKE mangling header file, liblapack.dll, liblapacke.dll
(2) Change the variance_reduction.c to variance_reduction.cpp , and change the part to
(3) Change the setup.py file to :
(4) Run: python setup.py install

(5) Put the dll files like this
The text was updated successfully, but these errors were encountered: