kimiya_ab

Junior Member
Mar 19, 2017
4
0
1
hello everybody

I want to use quicksort in parallel form for my project but I really don't want to use the NVIDIA sample for that matter because I have to give a full hour speech about how exactly every part of my code work and the NVIDIA sample is extremely general and hard to understand.
Does anyone have any idea? any simple form of code for this particular sorting ??
I would appreciate your help.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,284
3,905
75
Welcome to AnandTech Forums!

First, is this for Cuda, OpenCL, or for CPU work?

Second, does it have to be Quicksort? Merge sort is almost as fast, and simpler IMHO. Edit: depending on how you parallel Quicksort, merge sort could wind up a lot slower - it has a linear final pass. But parallel Quicksort does seem insanely complicated that way.
 
Last edited:

kimiya_ab

Junior Member
Mar 19, 2017
4
0
1
Welcome to AnandTech Forums!

First, is this for Cuda, OpenCL, or for CPU work?

Second, does it have to be Quicksort? Merge sort is almost as fast, and simpler IMHO.


thank u so much,

yeah I should have mentioned that I need it in Cuda!
and for ur 2nd question, yea !!! it has to be quicksort
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
>> I really don't want to use the NVIDIA sample for that matter because I have to give a full hour speech about how exactly every part of my code work and the NVIDIA sample is extremely general and hard to understand.

It sounds like you would learn a lot about CUDA by working through this example until you do fully understand it. If you plan to continue to use CUDA it might be worth the time.

Goal 1: Get an OK grade with lowest effort possible.
Goal 2: Learn as much as you can about the subject, and become a superior developer. Get an A as a side effect.

Pick one
 

beginner99

Diamond Member
Jun 2, 2009
5,223
1,598
136
Goal 1: Get an OK grade with lowest effort possible.
Goal 2: Learn as much as you can about the subject, and become a superior developer. Get an A as a side effect.

Pick one

OP, I always picked 1 back than and kind of regret it a bit. So yeah, pick 2 please.
 
Reactions: kimiya_ab

kimiya_ab

Junior Member
Mar 19, 2017
4
0
1
OP, I always picked 1 back than and kind of regret it a bit. So yeah, pick 2 please.

the problem is that the quicksort is not a great choice for learning!
and I just need its code bcuz I m forced to use it. that's why I think there is absolutely no point for learning the quicksort sample and I want a quick easy way out of it. I even figured out how merge sort sample works but when I asked my professor for changing my method to merge sort cuz it's better she said No.
trust me there no learning point for quicksort in Cuda if there were such thing I would never have ask for the solution !!
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
So you don't think you will learn anything useful by studying the "hard to understand" parts of Nvidia's code until they are easy to understand?

I'm not working with CUDA and haven't looked at their code, so I'm not qualified to agree or disagree. But if those parts use techniques that would help you in other tasks then you might be wrong.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |