/***************************************************************************
 *                           TimeDrivenNeuronModel_GPU.cpp                 *
 *                           -------------------                           *
 * copyright            : (C) 2012 by Francisco Naveros                    *
 * email                : fnaveros@ugr.es                                  *
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 3 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#include "../../include/neuron_model/TimeDrivenNeuronModel_GPU.h"
#include "../../include/neuron_model/TimeDrivenNeuronModel_GPU2.h"
#include "../../include/neuron_model/NeuronModel.h"
#include "../../include/neuron_model/VectorNeuronState.h"
#include "../../include/neuron_model/VectorNeuronState_GPU.h"


//Library for CUDA
#include "../../include/cudaError.h"
#include <helper_cuda.h>

#include <string>

TimeDrivenNeuronModel_GPU::TimeDrivenNeuronModel_GPU(string NeuronTypeID, string NeuronModelID, TimeScale timeScale): NeuronModel(NeuronTypeID, NeuronModelID, timeScale){
	// TODO Auto-generated constructor stub
}

TimeDrivenNeuronModel_GPU::~TimeDrivenNeuronModel_GPU() {
	delete integrationMethod_GPU;
	HANDLE_ERROR(cudaEventDestroy(stop));
}


enum NeuronModelType TimeDrivenNeuronModel_GPU::GetModelType(){
	return TIME_DRIVEN_MODEL_GPU;
}

