Warnings with xlC compiler
Nobody has claimed this yet.
- Dominant language
- Cuda
- Stars
- 692
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
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;
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with AMGX/core/src/matrix_coloring/serial_greedy_bfs.cu at line 752 and inspect the allocation paired with delete A_col_indices. Build AMGX with xlC version 16 to reproduce the reported warnings, then check the other warning sites mentioned in the issue. Done means the mismatched deallocation warnings and the reported unsupported-option warnings are addressed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system, compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100