January 30th, 2013 10: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 09: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 11:20 AM
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 10: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 08: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 05: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 04: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 03: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...
February 26th, 2012 06: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 03: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 08: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 01: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 06: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 11:30 AM
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...