Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Comments

dot product by sherwin#71

Open
SherwinBryan wants to merge 3 commits intoIEEE-NITK:Cuda_C++_SMPfrom
SherwinBryan:assignment
Open

dot product by sherwin#71
SherwinBryan wants to merge 3 commits intoIEEE-NITK:Cuda_C++_SMPfrom
SherwinBryan:assignment

Conversation

@SherwinBryan
Copy link

No description provided.

Copy link

@niranjansy niranjansy left a comment

Choose a reason for hiding this comment

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

In your code to find minimum and maximum, the GPU code is working correctly, but the CPU code is wrong. So try to correct that.

}
return naive_max;
}

Choose a reason for hiding this comment

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

There is a mistake in your serial code to find the maximum and minimum.
Consider the array {4, 8, 6}. Then your Find_min_CPU algorithm returns 6 as the minimum, and not 4.

Copy link
Author

@SherwinBryan SherwinBryan May 22, 2020

Choose a reason for hiding this comment

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

Thanks ,I will do the changes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants