NVIDIA / NVIDIA/AMGX

Warnings with xlC compiler

Open
#93 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.