Skip to content

Conversation

@dezajno
Copy link
Collaborator

@dezajno dezajno commented Nov 12, 2020

This PR implements Parallel Kernel Fusion as described in the Master Thesis "DSL-based Parallel Kernel Fusion for Locality Improvement on GPUs".

TODO:

  • Add examples for PP2P, 3P2P, 4P2P and LL2P, LP2P, PP2L, LP2L, LL2L (maybe also variants with ALU heavy operators)
  • Detect parallel patterns in data dependencies
  • Fuse patterns

@dezajno dezajno requested a review from qiao-bo November 12, 2020 15:31
@dezajno dezajno self-assigned this Nov 12, 2020
Copy link
Owner

@qiao-bo qiao-bo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dezajno, please do not make the two level directory under 6_Test. Can you move all Kernel_Fusion_xPxP one level up, remove the folder Parallel_fusion_point and the cmakelist

@dezajno dezajno requested a review from qiao-bo November 13, 2020 10:21
void markKernelPositionSublist(std::list<HipaccKernel *> *l);
void recomputeMemorySizeLocalFusion(std::list<HipaccKernel *> *l);

FusionType getFusionTypeFor(std::list<HipaccKernel *> *l) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about move the definition to cpp file?

return *fusionType;
}

void initFusibleKernelBlockLocation(FusionType fusionType) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

PBlockID++;
}
initFusibleKernelBlockLocation(FusionType::Linear);
initFusibleKernelBlockLocation(FusionType::Parallel);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so if there is no valid parallel fusion kernels? do we still init?

@dezajno dezajno force-pushed the parallel-kernel-fusion branch from ff19a40 to 9dee815 Compare November 28, 2020 10:50
@dezajno dezajno marked this pull request as ready for review June 1, 2021 14:45
@dezajno dezajno marked this pull request as draft June 1, 2021 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants