Commit c58d9f6e authored by Carlos Catania's avatar Carlos Catania
Browse files

Quick fix to support new CUDA API (>4.1)

Since CUDA API 4.1 cudaFuncGetAttributes doesn't support  string parameters, function pointer should be used instead.
parent cd0fd77c
......@@ -82,7 +82,7 @@ int main(int argc, char** argv){
using namespace std;
extern "C" __global__ void cudaEvaluatePopulation(void* d_population, unsigned popSize, float* d_fitnesses);
#include "EASEAIndividual.hpp"
bool INSTEAD_EVAL_STEP = false;
......@@ -154,7 +154,7 @@ void cudaPreliminaryProcess(struct gpuEvaluationData* localGpuData, int populati
// here we will compute how to spread the population to evaluate on GPGPU cores
struct cudaFuncAttributes attr;
int thLimit = attr.maxThreadsPerBlock;
int N = localGpuData->sh_pop_size;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment