parallel

Thread Building Block versus MPI, which one fits mt need better?

Now I have a serial solver in C++ for solving optimization problems and I am supposed to parallelize my solver with different parameters to see whether it can help improve the performance of the solver. Now I am not sure whther I should use TBB or MPI. From a TBB book I read, I feel TBB is more suitable for looping or fine-grained code....

Learn Nvidia CUDA

I am C++ programmer that develop image and video algorithims, should i learn Nvidia CUDA? or it is one of these technlogies that will disappear? ...

Any distributed parallel tree search algorithm suggestions?

Hello there, I'm writing a distributed Go/Gomoku bot. Basically the point is to distribute tree search onto many computers. With basic tree search algorithms like DFS this would be very simple, as I could just partition search space into subtrees. Though I'd rather have something more efficient, like mini-max with alpha-beta pruning - ...

Asynchronous/parallel HTTP requests using PHP curl_multi

I recently looked into the possibility of making multiple requests with curl. I may not be understanding it fully, so I am just hoping to clarify some concepts. It's definitely a good option if you are fetching content from multiple sources. That way, you can start processing the results from faster servers while still waiting for slowe...

ASP.NET Parallel Web Service Calls

Hello, I have an aspx page which reads items from an SQL DB and displays them on a GridView. For every item located in DB there are several metadata associated with it which can be retrieved by making a Web Service call per item in the GridView. What I want to do is to make concurrent calls to the web-service (in order to save time from ...

Is parallel programming == multithread programming ?

Is parallel programming == multithread programming? ...

How to ensure a dynamically allocated array is private in openmp

I'm working in C with openMP using gcc on a linux machine. In an openmp parallel for loop, I can declare a statically allocated array as private. Consider the code fragment: int a[10]; #pragma omp parallel for shared(none) firstprivate(a) for(i=0;i<4;i++){ And everything works as expected. But if instead I allocate a dynamically, i...

Are C# structs thread safe?

Is a C# struct thread-safe? For example if there is a: struct Data { int _number; public int Number { get { return _number; } set { _number = value; } } public Data(int number) { _number = number; } } in another type: class DadData { public Data TheData { get; set; } } is property named TheData, thread-safe? ...

How to ensure MapReduce tasks are independent from each other?

I'm curious, but how does MapReduce, Hadoop, etc., break a chunk of data into independently operated tasks? I'm having a hard time imagining how that can be, considering it is common to have data that is quite interelated, with state conditions between tasks, etc. Thanks. ...

How does Batcher Merge work at a high level?

I'm trying to grasp the concept of a Batcher Sort. However, most resources I've found online focus on proof entirely or on low-level pseudocode. Before I look at proofs, I'd like to understand how Batcher Sort works. Can someone give a high level overview of how Batcher Sort works(particularly the merge) without overly verbose pseudocode...

Unified Parallel C - examples and list of extensions

Hello Where can I find examples of code, written in "Unified Parallel C"? I also interested in normative documents about this language (standards, reference manuals, online-accessible books and courses). What extensions were added to C to get UPC? Is this dialect alive or dead? ...

DTE.Debugger.Go(False) fails after building externally in a Visual Studio 2008 macro

I am writing a macro to save all open documents, launch MSBuild to build C# projects in parallel, and then run the solution using the debugger. Automating these steps in a reliable way will save my team a lot of time. My problem is I can't get DTE.Debugger.Go(False) to work when the external build changes the output files. Error ...

How to find available parallel ports and their I/O addresses using Delphi and WMI

I see that WMI is very powerful and seems to be able to return most properties of a PC hardware. I'd like to display the available parallel ports on any PC and find their I/O addresses - I know that normally this is done using a Kernel driver but this is a legacy need - dont ask! Presently we look in Device Manager and then have to type ...

Best seed for parallel process

I need to run a MonteCarlo simulations in parallel on different machines. The code is in c++, but the program is set up and launched with a python script that set a lot of things, in particular the random seed. The function setseed thake a 4 bytes unsigned integer Using a simple import time setseed(int(time.time())) is not very good ...

Why is my computer not showing a speedup when I use parallel code?

So I realize this question sounds stupid (and yes I am using a dual core), but I have tried two different libraries (Grand Central Dispatch and OpenMP), and when using clock() to time the code with and without the lines that make it parallel, the speed is the same. (for the record they were both using their own form of parallel for). T...

Most useful parallel programming algorithm?

I recenty asked a question about parallel programming algorithms which was closed quite fast due to my bad ability to communicate my intent: http://stackoverflow.com/questions/2407631/what-is-the-most-useful-parallel-programming-algorithm-closed I had also recently asked another question, specifically: http://stackoverflow.com/questio...

How to convert for loop to STL for_each statement.

Hi, I would like to convert my for loop to STL std::for_each loop. bool CMyclass::SomeMember() { int ii; for(int i=0;i<iR20;i++) { ii=indexR[i]; ishell=static_cast<int>(R[ii]/xStep); theta=atan2(data->pPOS[ii*3+1], data->pPOS[ii*3]); al2[ishell] += massp*...

pipelined function

Can someone provide an example of how to use parallel table function in oracle pl/sql. We need to run massive queries for 15 years and combine the result. SELECT * FROM Table(TableFunction(cursor(SELECT * FROM year_table))) ...is what we want effectively. The innermost select will give all the years, and the table function will t...

Can a USB to parallel port adapter recognize a "high" pin?

I’m building a custom “robotish” machine that has 8 switches I need to interface with a laptop. The only input to the laptop is via USB. Here’s my idea: When the switch is closed, it sends a 5v signal to one of the input pins on a parallel to USB adapter. This adapter translates this to a USB signal and sends it to the computer, which ...

Optimal Sharing of heavy computation job using Snow and/or multicore

Hi, I have the following problem. First my environment, I have two 24-CPU servers to work with and one big job (resampling a large dataset) to share among them. I've setup multicore and (a socket) Snow cluster on each. As a high-level interface I'm using foreach. What is the optimal sharing of the job? Should I setup a Snow cluster...