Changeset 147 for trunk/ADOL-C/examples


Ignore:
Timestamp:
Aug 24, 2010 5:27:51 AM (10 years ago)
Author:
kulshres
Message:

squashed merge of branch 'master' of 'gitclone' into svn

  • 'master' of 'gitclone': (6 commits) use a mix of unmanaged and managed ColPack? calls avoid invalid memory write and segfault function argument b in MINDEC(a,b) it shouldn't be called twice Use newer ColPack?, but not _unmanged functions yet allocate and deallocate Seed in the C++ way. ColPack? and ADOL-C memory management conflicts

details of the commits:

commit 8197b4f256296ee0a6a06cbc61bd69186724d8ea
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Sun Aug 22 22:13:01 2010 +0200

use a mix of unmanaged and managed ColPack? calls

commit 6c871ee1157da9dedf9e2fbf835e49967637d163
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Sun Aug 22 22:12:17 2010 +0200

avoid invalid memory write and segfault

commit 498f0276b5a27535b112b8861bca98757b498b7b
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Fri Aug 20 13:01:24 2010 +0200

function argument b in MINDEC(a,b) it shouldn't be called twice

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

commit 1b262576dda64fccfd58d114fade80f40abfc1c5
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Aug 19 14:54:35 2010 +0200

Use newer ColPack?, but not _unmanged functions yet

commit 739d4a1ff5eec5ab1e283e8b1b9e217079dce7fe
Author: Kshitij Kulshreshtha <kshitij@…>
Date: Thu Aug 19 14:31:16 2010 +0200

allocate and deallocate Seed in the C++ way.

commit eea5d34cb9b16217c51256a18eae8dce8e9312ea
Author: Duc Nguyen Chi <dnguy010@…>
Date: Wed Aug 18 14:25:03 2010 +0200

ColPack? and ADOL-C memory management conflicts

Recall the latest changes we asked you to make in the ADOL-C functions
generate_seed_jac and generate_seed_hess: you had to copy the seed matrix
so that ADOL-C could later free the associated memory.
To avoid the copying there, and allow deallocation of the seed matrix by ADOL-C,
we have added in ColPack? GenerateSeedJacobian? and GenerateSeedHessian? functions
whose memory deallocation is not managed by ColPack?, but by the caller, in this case ADOL-C.
These functions have the suffix "_unmanaged" in their names.
In addition, we have modified the GenerateSeedJacobian? and GenerateSeedHessian? routines
so that they would not clear and build the bipartite graph afresh, but rather rely on the graph built via
the constructors BipartiteGraphPartialColoringInterface?(SRC_MEM_ADOLC, ...) and
GraphColoringInterface?(SRC_MEM_ADOLC,...).

Signed-off-by: Duc Nguyen Chi <dnguy010@…>
Acked-by: Assefaw Gebremedhin <agebreme@…>
Signed-off-by: Kshitij Kulshreshtha <kshitij@…>
Cc: Andrea Walther <andrea.walther@…>

Location:
trunk/ADOL-C/examples/additional_examples/sparse
Files:
2 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.