PHCpack icon indicating copy to clipboard operation
PHCpack copied to clipboard

Error in compiling phcpy2cpath_d.so

Open HongyiFan opened this issue 4 years ago • 2 comments

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.

HongyiFan avatar Apr 06 '20 21:04 HongyiFan

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

janverschelde avatar Apr 07 '20 01:04 janverschelde

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!

glf15 avatar May 28 '20 16:05 glf15