renaming the classes

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2628 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
boufaras 2012-01-12 10:11:26 +00:00
commit e5d81a73f0
2 changed files with 17 additions and 17 deletions

View file

@ -1,5 +1,5 @@
/* /*
<PPPData.h> <moGPUPPPData.h>
Copyright (C) DOLPHIN Project-Team, INRIA Lille - Nord Europe, 2006-2010 Copyright (C) DOLPHIN Project-Team, INRIA Lille - Nord Europe, 2006-2010
Boufaras Karima, Thé Van Luong Boufaras Karima, Thé Van Luong
@ -32,13 +32,13 @@
Contact: paradiseo-help@lists.gforge.inria.fr Contact: paradiseo-help@lists.gforge.inria.fr
*/ */
#ifndef _PPPData_H_ #ifndef _moGPUPPPData_H_
#define _PPPData_H_ #define _moGPUPPPData_H_
#include <memory/moGPUSpecificData.h> #include <memory/moGPUSpecificData.h>
template<class ElemType> template<class ElemType>
class PPPData: public moGPUSpecificData { class moGPUPPPData: public moGPUSpecificData {
public: public:
@ -48,7 +48,7 @@ public:
* Default Constructor * Default Constructor
*/ */
PPPData() : moGPUPPPData() :
moGPUSpecificData() { moGPUSpecificData() {
//(*this).load(); //(*this).load();
@ -59,7 +59,7 @@ public:
* @param _pppData the specific data of PPP * @param _pppData the specific data of PPP
*/ */
PPPData(const PPPData & _pppData) { moGPUPPPData(const moGPUPPPData & _pppData) {
a_h = new int[Md * Nd]; a_h = new int[Md * Nd];
H_h = new int[Nd]; H_h = new int[Nd];
@ -83,7 +83,7 @@ public:
* @return a PPP Data * @return a PPP Data
*/ */
PPPData & operator=(const PPPData & _pppData) { moGPUPPPData & operator=(const moGPUPPPData & _pppData) {
a_h = new int[Md * Nd]; a_h = new int[Md * Nd];
H_h = new int[Nd]; H_h = new int[Nd];
@ -105,7 +105,7 @@ public:
* Destructor * Destructor
*/ */
~PPPData() { ~moGPUPPPData() {
GPUObject.memFree(a_d); GPUObject.memFree(a_d);
GPUObject.memFree(H_d); GPUObject.memFree(H_d);
delete[] a_h; delete[] a_h;

View file

@ -1,5 +1,5 @@
/* /*
<QAPData.h> <moGPUQAPData.h>
Copyright (C) DOLPHIN Project-Team, INRIA Lille - Nord Europe, 2006-2010 Copyright (C) DOLPHIN Project-Team, INRIA Lille - Nord Europe, 2006-2010
Boufaras Karima, Thé Van Luong Boufaras Karima, Thé Van Luong
@ -32,13 +32,13 @@
Contact: paradiseo-help@lists.gforge.inria.fr Contact: paradiseo-help@lists.gforge.inria.fr
*/ */
#ifndef _QAPData_H_ #ifndef _moGPUQAPData_H_
#define _QAPData_H_ #define _moGPUQAPData_H_
#include <memory/moGPUSpecificData.h> #include <memory/moGPUSpecificData.h>
template<class ElemType> template<class ElemType>
class QAPData: public moGPUSpecificData { class moGPUQAPData: public moGPUSpecificData {
public: public:
@ -49,7 +49,7 @@ public:
* Default Constructor * Default Constructor
*/ */
QAPData() : moGPUQAPData() :
moGPUSpecificData() { moGPUSpecificData() {
} }
@ -58,7 +58,7 @@ public:
* @param _fileName the data file name * @param _fileName the data file name
*/ */
QAPData(char* _fileName) { moGPUQAPData(char* _fileName) {
(*this).load(_fileName); (*this).load(_fileName);
@ -69,7 +69,7 @@ public:
* @param _qapData the specific data of QAP * @param _qapData the specific data of QAP
*/ */
QAPData(const QAPData & _qapData) { moGPUQAPData(const moGPUQAPData & _qapData) {
sizeData = _qapData.sizeData; sizeData = _qapData.sizeData;
a_h = new int[sizeData * sizeData]; a_h = new int[sizeData * sizeData];
@ -94,7 +94,7 @@ public:
* @return a QAP Data * @return a QAP Data
*/ */
QAPData & operator=(const QAPData & _qapData) { moGPUQAPData & operator=(const moGPUQAPData & _qapData) {
sizeData = _qapData.sizeData; sizeData = _qapData.sizeData;
a_h = new int[sizeData * sizeData]; a_h = new int[sizeData * sizeData];
@ -116,7 +116,7 @@ public:
* Destructor * Destructor
*/ */
~QAPData() { ~moGPUQAPData() {
GPUObject.memFree(a_d); GPUObject.memFree(a_d);
GPUObject.memFree(b_d); GPUObject.memFree(b_d);
delete[] a_h; delete[] a_h;