Using MFC project with MPI
Hi all, I want to build an application using MPI and I chooses for the UI MFC project, but when I try to configure the linking and the debugging stuff with MPI, i get errors on compilation, what I...
View ArticleCouldn't create more than 64 OpenMP threads in a test application
Hi, I recently done a test in a simple OpenMP based application and OpenMP couldn't create more than 64 threads. Also, please follow a discussion on:...
View ArticleIs a serial code quickly than such one transformed to thread?
I was made simple and very complicated experiments too, when take a serial code and put it in one thread (threads). Execution time increases about two time after that. I’d like to know scientific...
View ArticleC++ AMP Random Number Generator
Hi Sir I want to use my RandomNumber() function in parallel_for_each() function. When I Build I get this error How do I resolve this problem error C3930: 'RandomNumber' : no overloaded function has...
View ArticleUse of task to prepare a XmlDocument from a file with WinRT library functions.
I was wondering if there is a better way to write a function that reads an XML file and turns it into a XmlDocument object, and then executes a user specified function on that XmlDocument. Not...
View ArticleIterating on the GPU with C++ AMP
Hi I'm going to code a GPU based version of Dijkstra search, and since I have just started Learning C++ AMP my knowledge is quite limited. I guess there is a simple answer, but here goes: //Create GPU...
View ArticleTranslating some common CUDA constructs to C++ AMP, help
Hello, AMP forum! My first post here and "some thought play". I've been fiddling different kinds of CUDA codes (I'm not really a CUDA programmer, just a beginner and basic toying) and now I'd like to...
View ArticleCalling AMP from a managed class library
Hello all, I'm considering adding some AMP funcitonality to my managed class library. I saw this walkthrough which looks very helpful: http://blogs.msdn.com/b/pfxteam/archive/2011/09/21/10214538.aspx...
View ArticleSaving a float as an int in AMP
I have been trying to compute a few max min values that could change in multiple threads. I want to use the atomic_fetch_min and atomic_fetch_max, but the values I want to save are floats. I would...
View ArticleMulti-threading blocks of code in relation to one another
I’m writing a program using managed Visual C++ to extract data from an IT system and store it into a Microsoft Access database. It’s all working fine but performance is slow and I was hoping to multi-...
View ArticleUse of task to prepare a XmlDocument from a file with WinRT library functions.
I was wondering if there is a better way to write a function that reads an XML file and turns it into a XmlDocument object, and then executes a user specified function on that XmlDocument. Not...
View ArticleHow to write a mutex in C++ AMP to avoid "write after write hazard"?
Greetings! The question is, do I need a mutex or some other construct or is a debugger issued potential write-issue-write hazard always warranted? My situation is as so that I have an output variable...
View ArticleDoes parallel_for_each(view.extent.tile(), [=](tiled_index t_idx)...
Hi! Just to check if I have understood correctly or the complete opposite, in the following situation, does the following code utilize just on thread or does it divide each floats_view element into its...
View ArticleDifference between std::thread and std::async
Hi Would liked to know the difference between std::thread and std::async? does std::async uses a new thread to complete the task? What is the limitation of std::async over std::thread? Under which...
View ArticleWhat could be the reason for inconsistent program abort that seem to happen...
Hi, again! I found a curious problem: No crash: When I run or debug C++ AMP program with auto setting and a real GPU hardware.No crash: When I run without debugger (Debugger Type: GPU Only) and...
View ArticleContinue Loop on Another Task
Consider the following code: std::istream& in = /*...*/; for(int n = 0; n < /*...*/; ++n) { std::vector<int> data(8192); in.read(reinterpret_cast<char*>(data.data()),...
View ArticlePartial Memory Uploads?
Let's say I create an array. concurrency::array<int> ar(1024); I then fill it with data. int count = 0; for(int n = 0; n < /* ... */; ++n) { ar_av[++count] = /*...*/; } Now let's say that...
View ArticleLow Latency Decoding and Small Array Size
I'm working on a video decoder which is to decode each frame as fast as possible with lowest possible latency, however I have some issues with achieving this with C++ AMP. In order to reduce latency as...
View ArticleConcurrency - Help with understanding Profiling Results
I've just converted some of my code to C++ AMP and my application now finishes a lot slower than before (52 ms per frame compared to 20 ms per frame before). I have tried to use the VS2012 Profiler to...
View Articledeclaring array / array_view inside GPU code
Hi, I'm pretty new at this and I did a search on the forums/blogs and couldn't find a solution so if my problem is really basic / already answered I apologise. I'll outline what I'm trying to do...
View Article