Search:
Type: Posts; User: dshawul
Search:
Search took 0.02 seconds; generated 22 minute(s) ago.
-
January 30th, 2013, 11:28 AM
Bug: http://connect.microsoft.com/VisualStudio/feedback/details/759134/vs-2012-will-not-automatically-use-property-sheet-changes-in-vs10-projects
-
January 30th, 2013, 10:16 AM
I am trying to include library paths in VS 2012 through the new property pages.I downloaded and installed mpich2-64 bit libraries under "C:\Program Files\MPICH2\include" and set the include path in...
-
January 26th, 2013, 12:20 PM
Thanks a lot for the thorough explanation. Now I understand perfectly.
I have edited my original post with the source code that produces the error so that others understand
your explanation. ...
-
January 26th, 2013, 11:14 AM
Hi, thanks very much. Both methods work. What I don't understand is that the overloaded IO operators of Option class have different types than the default ones,so why should there be a conflict ?
I...
-
January 26th, 2013, 09:41 AM
Hi, The simplified code compiles correctly under GCC but not MSVC. why ? If I put Option struct in its own named namespace or remove the namespace Util, it compiles correclty. How can I make it work...
-
November 21st, 2012, 06:46 AM
You are a life saver. I will use the traits method for now.
Scalar,vector and tensor are 1st,2nd and 3rd rank tensors but they are of completely different types represented by
double, double[], and...
-
November 21st, 2012, 05:05 AM
Thanks a lot.
Unfortunately I am not using c++11 so I can not use those solutions.
I get 'error C3861: 'decltype': identifier not found' for the second solution.
Do you have the solution that...
-
November 21st, 2012, 04:25 AM
Hi,
Say I have overloaded functions with different arguments AND return types. Each set of argument has only one corresponding return type.
Vector grad(Scalar)
Tensor grad(Vector)
Later I...
-
September 11th, 2012, 10:07 AM
Hi nuzzle
Sorry I didn't look back to this thread once I thought I had something working. Yes you are right there was something fishy about the code I posted. Running the code 10 times will reveal a...
-
August 31st, 2012, 07:26 PM
Well it seems the easiest approach of picking one at a time randomly works well.
#include <stdlib.h>
#include <stdio.h>
void gen(int* r,int* rk,int Nk) {
int N = 0;
for(int j =...
-
August 31st, 2012, 09:27 AM
N can be very big (thousands or millions). Maybe I am looking at this problem from a wrong perspective so let me describe the actual problem.
I have data of wins,draws,losses N = W + D + L. For...
-
August 31st, 2012, 09:09 AM
How do you generate a random permutation of numbers from 0 to N without storing it in an array ?
Note that duplicates are to be avoided so I can't use rand() calls to generate them.
The problem I...
-
July 23rd, 2012, 04:45 PM
Yes with address space of 2^64.
-
July 23rd, 2012, 04:20 PM
Hi
When does malloc() return null ? I want to allocate a big virtual memory which can not possibly fit on RAM, so most of it will be stored on disk. I am going to access the data sequentially so at...
-
July 21st, 2012, 04:37 PM
Yes another alternative would be to use an flock() but why use it when synchronization can be avoided. Anyway I like appending the output file name with an extension. And it works just fine.
Thanks...
-
July 21st, 2012, 04:06 PM
Yes I want to do a parallel compression of many files on linux cluster all residing in the same current directory. Creating a folder just to put in the temporary file would be problematic.
-
July 21st, 2012, 04:05 PM
That seems to be a windows only solution. Is there something in c like remove?
update: I got about 10 or so corrupt files so indeed the problem is there. Somehow I thought system would be 'process...
-
July 21st, 2012, 03:55 PM
The temporary file is created in the same directory and it could stay alive for 10 seconds where there is conflict. I think I can solve it by giving different names to each temporary file (eg....
-
July 21st, 2012, 02:44 PM
Hi
I have a compressor that takes a file and first compresses it to an intermediate file "temp.lz", before compressing it to the final format. Immediately after that the file be removed by calling...
-
February 26th, 2012, 07:56 PM
Thanks I came up with an inline function solution but yours works too.
//inline void l_barrier() {
// #pragma omp barrier
//}
#define l_barrier() { \
__pragma(omp barrier) \
}
-
February 26th, 2012, 04:25 PM
Is it possible to define a macro with in a macro ? Any trick will do.
I am trying to do quick conversion of cuda program to open mp by defining some macros at the top:
#define __syncthreads() ...
-
February 15th, 2012, 09:00 AM
I think you got the message exchange between slaves and master right. Mpi starts the number of processors you specified at start up and sets them up for message passing. Any other process you fork or...
-
February 14th, 2012, 02:22 PM
If I understand you correctly, you want to execute PerformTask() by different processors, but you have other code that executes only once. You can put all that code in rank=0 to be executed only once...
-
February 8th, 2012, 07:09 AM
I think you did really well. And I agree that first thing is to get it working.
I sensed the amount of effort you put into your project which is why I "volunteered" to introduce you there. ]If you...
-
February 7th, 2012, 12:30 PM
Hell veclock
Welcome to the chess engine programming world. A group of smart chess programmers are ready to help you in developing your engine after I informed them of your question here. I hope you...
|
Click Here to Expand Forum to Full Width
|