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

Error in compiling phcpy2cpath_d.so #29

Open
HongyiFan opened this issue Apr 6, 2020 · 2 comments
Open

Error in compiling phcpy2cpath_d.so #29

HongyiFan opened this issue Apr 6, 2020 · 2 comments

Comments

@HongyiFan
Copy link

I met errors in comping phcpy2cpath_d.so for using GPU support of PHCpy.
After compiling phcpy2c2.so, everything works fine.
Then, when compiling phcpy2cpath_d.so, the following error came out:

../Lib/phcpy2cpath_d.cpp: In function ‘PyObject* py2c_solve_system(PyObject*, PyObject*)’:
../Lib/phcpy2cpath_d.cpp:913:11: error: ‘solve_system’ was not declared in this scope
fail = solve_system(&rc,nbtasks);

../Lib/phcpy2cpath_d.cpp: In function ‘PyObject* py2c_standard_deflate(PyObject*, PyObject*)’:
../Lib/phcpy2cpath_d.cpp:950:35: error: too few arguments to function ‘int standard_deflate(int, int, double, double, double)’
int fail = standard_deflate();

As well as several other similar errors. I did a search on all these function names, but there is no function called "solve_system" in all C and Ada code.

Thanks.

@janverschelde
Copy link
Owner

Reproduced the compilation error.
Will try to fix in a next release of the code.

@glf15
Copy link

glf15 commented May 28, 2020

I have also experienced these issues and I was able to get past the compilation stage by updating the makefile instructions for each of the phcpy2cpath_d.so, phcpy2cpath_dd.so, and phcpy2cpath_qd.so and updating function naming conventions in their associated .cpp files. In addition, I had to remove certain flags and include updated CUDA directories in my PATH variable in order to successfully compile. However, upon attempting to import functions defined therein, there was a problem with a local variable "demicsfly". I was not able to circumvent this issue. Looking forward to future releases, even without the GPU accelerated functions the code is immensely useful in my work!

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