Skip to content

Bugfix & Memory leak fix #2

Description

@turtleizzy

There is a bug in __alloc_gpu (https://github.com/lkoshale/DA_STAR/blob/f17db9039e393f7b67956df51c579790bbd33f23/include/a_star.cu#L72C1-L72C40) rendering all sssp with starting node other than 0 fail to proceed.

Adding gpuErrchk ( cudaMemcpy(d_PQ,PQ,sizeof(unsigned int)*N,cudaMemcpyHostToDevice) ); in __alloc_gpu should fix this issue.

By the way, several cudaFree and free should be added to address device & host memory leaks.

Refer to master...turtleizzy:DA_STAR:master . Several api-breaking features have been added in my fork making it difficult to submit a PR directly from my fork.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions