Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoltan2: fixed memory leak when using 32-bit Scotch #9313

Merged
merged 1 commit into from
Jun 19, 2021

Conversation

kddevin
Copy link
Contributor

@kddevin kddevin commented Jun 18, 2021

@trilinos/zoltan2

Motivation

In #9312 @tasmith4 reported a memory leak when using 32-bit Scotch.
When Scotch's IDs (SCOTCH_Num) differ from the offset_type in the Zoltan2 Adapter, Zoltan2 deep copies vertex and adjacency arrays into arrays of type SCOTCH_Num to be passed to Scotch. Templating helps Zoltan2 determine whether or not the copy is necessary, and then whether the deep copies need to be freed.

In this bug, the template types used in the free differed from those in the alloc, so the vertloctab array was allocated but never freed. This PR makes the template types agree.

Related Issues

Stakeholder Feedback

@tasmith4

Testing

ascicgpu machines, serial node, gcc7.2, Scotch 6.0.4 with 32-bit indices (provided by @tasmith4 from sierra build), OpenMPI 4.0.5, valgrind, np=1 and 4
Reproduced error; verified that PR eliminates the valgrind error.

@kddevin kddevin added pkg: Zoltan2 AT: AUTOMERGE Causes the PR autotester to automatically merge the PR branch once approvals are completed labels Jun 18, 2021
@kddevin kddevin requested review from egboman and tasmith4 June 18, 2021 22:30
@kddevin kddevin self-assigned this Jun 18, 2021
@trilinos-autotester
Copy link
Contributor

Status Flag 'Pre-Test Inspection' - Auto Inspected - Inspection Is Not Necessary for this Pull Request.

@trilinos-autotester
Copy link
Contributor

Status Flag 'Pull Request AutoTester' - Testing Jenkins Projects:

Pull Request Auto Testing STARTING (click to expand)

Build Information

Test Name: Trilinos_pullrequest_gcc_8.3.0

  • Build Num: 4814
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
PR_LABELS AT: AUTOMERGE;pkg: Zoltan2
PULLREQUESTNUM 9313
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH zoltan2_9312
TRILINOS_SOURCE_REPO https://github.com/trilinos/Trilinos
TRILINOS_SOURCE_SHA 313677f
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA 2be37f2

Build Information

Test Name: Trilinos_pullrequest_gcc_7.2.0_serial

  • Build Num: 2344
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
PR_LABELS AT: AUTOMERGE;pkg: Zoltan2
PULLREQUESTNUM 9313
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH zoltan2_9312
TRILINOS_SOURCE_REPO https://github.com/trilinos/Trilinos
TRILINOS_SOURCE_SHA 313677f
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA 2be37f2

Build Information

Test Name: Trilinos_pullrequest_gcc_7.2.0_debug

  • Build Num: 2825
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
PR_LABELS AT: AUTOMERGE;pkg: Zoltan2
PULLREQUESTNUM 9313
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH zoltan2_9312
TRILINOS_SOURCE_REPO https://github.com/trilinos/Trilinos
TRILINOS_SOURCE_SHA 313677f
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA 2be37f2

Build Information

Test Name: Trilinos_pullrequest_intel_17.0.1

  • Build Num: 10114
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
PR_LABELS AT: AUTOMERGE;pkg: Zoltan2
PULLREQUESTNUM 9313
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH zoltan2_9312
TRILINOS_SOURCE_REPO https://github.com/trilinos/Trilinos
TRILINOS_SOURCE_SHA 313677f
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA 2be37f2

Build Information

Test Name: Trilinos_pullrequest_cuda_10.1.105

  • Build Num: 1526
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
PR_LABELS AT: AUTOMERGE;pkg: Zoltan2
PULLREQUESTNUM 9313
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH zoltan2_9312
TRILINOS_SOURCE_REPO https://github.com/trilinos/Trilinos
TRILINOS_SOURCE_SHA 313677f
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA 2be37f2

Build Information

Test Name: Trilinos_pullrequest_cuda_10.1.105_uvm_off

  • Build Num: 523
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
PR_LABELS AT: AUTOMERGE;pkg: Zoltan2
PULLREQUESTNUM 9313
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH zoltan2_9312
TRILINOS_SOURCE_REPO https://github.com/trilinos/Trilinos
TRILINOS_SOURCE_SHA 313677f
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA 2be37f2

Build Information

Test Name: Trilinos_pullrequest_clang_10.0.0

  • Build Num: 2891
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
PR_LABELS AT: AUTOMERGE;pkg: Zoltan2
PULLREQUESTNUM 9313
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH zoltan2_9312
TRILINOS_SOURCE_REPO https://github.com/trilinos/Trilinos
TRILINOS_SOURCE_SHA 313677f
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA 2be37f2

Build Information

Test Name: Trilinos_pullrequest_python_3

  • Build Num: 5455
  • Status: STARTED

Jenkins Parameters

Parameter Name Value
PR_LABELS AT: AUTOMERGE;pkg: Zoltan2
PULLREQUESTNUM 9313
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH zoltan2_9312
TRILINOS_SOURCE_REPO https://github.com/trilinos/Trilinos
TRILINOS_SOURCE_SHA 313677f
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA 2be37f2

Using Repos:

Repo: TRILINOS (trilinos/Trilinos)
  • Branch: zoltan2_9312
  • SHA: 313677f
  • Mode: TEST_REPO

Pull Request Author: kddevin

@trilinos-autotester
Copy link
Contributor

Status Flag 'Pull Request AutoTester' - Jenkins Testing: all Jobs PASSED

Pull Request Auto Testing has PASSED (click to expand)

Build Information

Test Name: Trilinos_pullrequest_gcc_8.3.0

  • Build Num: 4814
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
PR_LABELS AT: AUTOMERGE;pkg: Zoltan2
PULLREQUESTNUM 9313
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH zoltan2_9312
TRILINOS_SOURCE_REPO https://github.com/trilinos/Trilinos
TRILINOS_SOURCE_SHA 313677f
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA 2be37f2

Build Information

Test Name: Trilinos_pullrequest_gcc_7.2.0_serial

  • Build Num: 2344
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
PR_LABELS AT: AUTOMERGE;pkg: Zoltan2
PULLREQUESTNUM 9313
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH zoltan2_9312
TRILINOS_SOURCE_REPO https://github.com/trilinos/Trilinos
TRILINOS_SOURCE_SHA 313677f
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA 2be37f2

Build Information

Test Name: Trilinos_pullrequest_gcc_7.2.0_debug

  • Build Num: 2825
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
PR_LABELS AT: AUTOMERGE;pkg: Zoltan2
PULLREQUESTNUM 9313
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH zoltan2_9312
TRILINOS_SOURCE_REPO https://github.com/trilinos/Trilinos
TRILINOS_SOURCE_SHA 313677f
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA 2be37f2

Build Information

Test Name: Trilinos_pullrequest_intel_17.0.1

  • Build Num: 10114
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
PR_LABELS AT: AUTOMERGE;pkg: Zoltan2
PULLREQUESTNUM 9313
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH zoltan2_9312
TRILINOS_SOURCE_REPO https://github.com/trilinos/Trilinos
TRILINOS_SOURCE_SHA 313677f
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA 2be37f2

Build Information

Test Name: Trilinos_pullrequest_cuda_10.1.105

  • Build Num: 1526
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
PR_LABELS AT: AUTOMERGE;pkg: Zoltan2
PULLREQUESTNUM 9313
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH zoltan2_9312
TRILINOS_SOURCE_REPO https://github.com/trilinos/Trilinos
TRILINOS_SOURCE_SHA 313677f
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA 2be37f2

Build Information

Test Name: Trilinos_pullrequest_cuda_10.1.105_uvm_off

  • Build Num: 523
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
PR_LABELS AT: AUTOMERGE;pkg: Zoltan2
PULLREQUESTNUM 9313
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH zoltan2_9312
TRILINOS_SOURCE_REPO https://github.com/trilinos/Trilinos
TRILINOS_SOURCE_SHA 313677f
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA 2be37f2

Build Information

Test Name: Trilinos_pullrequest_clang_10.0.0

  • Build Num: 2891
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
PR_LABELS AT: AUTOMERGE;pkg: Zoltan2
PULLREQUESTNUM 9313
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH zoltan2_9312
TRILINOS_SOURCE_REPO https://github.com/trilinos/Trilinos
TRILINOS_SOURCE_SHA 313677f
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA 2be37f2

Build Information

Test Name: Trilinos_pullrequest_python_3

  • Build Num: 5455
  • Status: PASSED

Jenkins Parameters

Parameter Name Value
PR_LABELS AT: AUTOMERGE;pkg: Zoltan2
PULLREQUESTNUM 9313
TEST_REPO_ALIAS TRILINOS
TRILINOS_SOURCE_BRANCH zoltan2_9312
TRILINOS_SOURCE_REPO https://github.com/trilinos/Trilinos
TRILINOS_SOURCE_SHA 313677f
TRILINOS_TARGET_BRANCH develop
TRILINOS_TARGET_REPO https://github.com/trilinos/Trilinos
TRILINOS_TARGET_SHA 2be37f2


CDash Test Results for PR# 9313.

@trilinos-autotester
Copy link
Contributor

Status Flag 'Pre-Merge Inspection' - SUCCESS: The last commit to this Pull Request has been INSPECTED AND APPROVED by [ tasmith4 ]!

@trilinos-autotester
Copy link
Contributor

Status Flag 'Pull Request AutoTester' - Pull Request will be Automerged

@trilinos-autotester trilinos-autotester merged commit ba3df3f into develop Jun 19, 2021
@trilinos-autotester
Copy link
Contributor

Merge on Pull Request# 9313: IS A SUCCESS - Pull Request successfully merged

@trilinos-autotester trilinos-autotester removed the AT: AUTOMERGE Causes the PR autotester to automatically merge the PR branch once approvals are completed label Jun 19, 2021
@kddevin kddevin deleted the zoltan2_9312 branch November 1, 2021 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants