@erdoom
I’m trying to understand the last code that you posted.
So if it is not too hard for you, give us some additional information about it… (in general)
Such as(to be more specific)
1)What is the exact purpose of using the
void GenNoise(float frequenzy, int* Array)
function?
As far as i know the traditional Game of life aglorithm does not include anything about noise…
or i just dont get it wright… plz explain the use of noise
- you also have
void NextGeneration()
__global__ void NextGen_smem(int* D_a, int* D_b, uchar4 *dst)
__global__ void NextGen(int* D_a, int* D_b, uchar4 *dst)
If u want to implement shared memory isn’t just enough to use the first definition?Why is the second needed?
and
#define XSMEM 18
#define YSMEM 18
What r u doing here? u define what? shared memory cannot use the existing blocksize?
-
#ifdef __DEVICE_EMULATION__
#define SCREENX 64
#define SCREENY 64
#else
#define SCREENX 1024
#define SCREENY 1024
#endif
I guess that the default board dims in ur project are 1024x1024, in which case that changes to 64x64 and so what is the
thing that DEVICE_EMULATION does here?
-
#if defined(__APPLE__) || defined(MACOSX)
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
On which OS u have ur project tested? i just dont get the above code…
Have u run it on Windows(whith no changes)?
- At last for now…
void initOpenGLBuffers(int argc, char **argv, int w, int h)
fprintf(stderr, "This sample requires:\n");
fprintf(stderr, " OpenGL version 1.5\n");
fprintf(stderr, " GL_ARB_vertex_buffer_object\n");
fprintf(stderr, " GL_ARB_pixel_buffer_object\n");
exit(-1);
In order to run this project on Windows or Linux 64bit do i have to download something more?except from the NVIDIA SDK?
I think that some files(.lib or .h) concerning glut are included there…
So are there any additional files needed for this project,in order to download them, and run it properly using OpenGL?
(or nvidia SDK 2.3 is just fine)
excuse me if the answers are too obvious but i am noob in CUDA
Thank you in advance.