AMGX icon indicating copy to clipboard operation
AMGX copied to clipboard

Warnings with xlC compiler

Open artv3 opened this issue 5 years ago • 3 comments

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;

artv3 avatar Apr 02 '20 16:04 artv3

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!

marsaev avatar Jun 04 '20 18:06 marsaev

Ok, just running with -Wall -Wextra -Werror revealed lots of warnings, will work on that

marsaev avatar Jun 04 '20 18:06 marsaev

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.

artv3 avatar Jun 05 '20 05:06 artv3