Warnings with xlC compiler
Hi all,
I recently built AMGX using xlC (Version: 16) as my host compiler, while building the code I hit a number of warnings:
warning: 1540-5200 The option "-dynamic" is not supported.
1500-036: (I) The NOSTRICT option (default at OPT(3)) has the potential to alter the semantics of a program. Please refer to documentation on the STRICT/NOSTRICT option for more information.
And it looks like delete is being applied to pointers allocated with new[] in a number of places.
For example:
AMGX/core/src/matrix_coloring/serial_greedy_bfs.cu:752:1: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean 'delete[]'? [-Wmismatched-new-delete] delete A_col_indices;
Hey @artv3 , thanks for your feedback.
I don't have access to xlc compiler to confirm that amgx compiles and binary works well, but if you kindly can provide you compilation logs i would try to fix mentioned errors. Definitely new/delete match is one of them :)
Thanks!
Ok, just running with -Wall -Wextra -Werror revealed lots of warnings, will work on that
Thanks @marsaev for looking into this. If there is anything you would like me to try please let me know. I can also share the logs if those would still be helpful.