renaming the classes
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2628 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
12777a624a
commit
e5d81a73f0
2 changed files with 17 additions and 17 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
<PPPData.h>
|
||||
<moGPUPPPData.h>
|
||||
Copyright (C) DOLPHIN Project-Team, INRIA Lille - Nord Europe, 2006-2010
|
||||
|
||||
Boufaras Karima, Thé Van Luong
|
||||
|
|
@ -32,13 +32,13 @@
|
|||
Contact: paradiseo-help@lists.gforge.inria.fr
|
||||
*/
|
||||
|
||||
#ifndef _PPPData_H_
|
||||
#define _PPPData_H_
|
||||
#ifndef _moGPUPPPData_H_
|
||||
#define _moGPUPPPData_H_
|
||||
|
||||
#include <memory/moGPUSpecificData.h>
|
||||
|
||||
template<class ElemType>
|
||||
class PPPData: public moGPUSpecificData {
|
||||
class moGPUPPPData: public moGPUSpecificData {
|
||||
|
||||
public:
|
||||
|
||||
|
|
@ -48,7 +48,7 @@ public:
|
|||
* Default Constructor
|
||||
*/
|
||||
|
||||
PPPData() :
|
||||
moGPUPPPData() :
|
||||
moGPUSpecificData() {
|
||||
|
||||
//(*this).load();
|
||||
|
|
@ -59,7 +59,7 @@ public:
|
|||
* @param _pppData the specific data of PPP
|
||||
*/
|
||||
|
||||
PPPData(const PPPData & _pppData) {
|
||||
moGPUPPPData(const moGPUPPPData & _pppData) {
|
||||
|
||||
a_h = new int[Md * Nd];
|
||||
H_h = new int[Nd];
|
||||
|
|
@ -83,7 +83,7 @@ public:
|
|||
* @return a PPP Data
|
||||
*/
|
||||
|
||||
PPPData & operator=(const PPPData & _pppData) {
|
||||
moGPUPPPData & operator=(const moGPUPPPData & _pppData) {
|
||||
|
||||
a_h = new int[Md * Nd];
|
||||
H_h = new int[Nd];
|
||||
|
|
@ -105,7 +105,7 @@ public:
|
|||
* Destructor
|
||||
*/
|
||||
|
||||
~PPPData() {
|
||||
~moGPUPPPData() {
|
||||
GPUObject.memFree(a_d);
|
||||
GPUObject.memFree(H_d);
|
||||
delete[] a_h;
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
<QAPData.h>
|
||||
<moGPUQAPData.h>
|
||||
Copyright (C) DOLPHIN Project-Team, INRIA Lille - Nord Europe, 2006-2010
|
||||
|
||||
Boufaras Karima, Thé Van Luong
|
||||
|
|
@ -32,13 +32,13 @@
|
|||
Contact: paradiseo-help@lists.gforge.inria.fr
|
||||
*/
|
||||
|
||||
#ifndef _QAPData_H_
|
||||
#define _QAPData_H_
|
||||
#ifndef _moGPUQAPData_H_
|
||||
#define _moGPUQAPData_H_
|
||||
|
||||
#include <memory/moGPUSpecificData.h>
|
||||
|
||||
template<class ElemType>
|
||||
class QAPData: public moGPUSpecificData {
|
||||
class moGPUQAPData: public moGPUSpecificData {
|
||||
|
||||
public:
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ public:
|
|||
* Default Constructor
|
||||
*/
|
||||
|
||||
QAPData() :
|
||||
moGPUQAPData() :
|
||||
moGPUSpecificData() {
|
||||
}
|
||||
|
||||
|
|
@ -58,7 +58,7 @@ public:
|
|||
* @param _fileName the data file name
|
||||
*/
|
||||
|
||||
QAPData(char* _fileName) {
|
||||
moGPUQAPData(char* _fileName) {
|
||||
|
||||
(*this).load(_fileName);
|
||||
|
||||
|
|
@ -69,7 +69,7 @@ public:
|
|||
* @param _qapData the specific data of QAP
|
||||
*/
|
||||
|
||||
QAPData(const QAPData & _qapData) {
|
||||
moGPUQAPData(const moGPUQAPData & _qapData) {
|
||||
|
||||
sizeData = _qapData.sizeData;
|
||||
a_h = new int[sizeData * sizeData];
|
||||
|
|
@ -94,7 +94,7 @@ public:
|
|||
* @return a QAP Data
|
||||
*/
|
||||
|
||||
QAPData & operator=(const QAPData & _qapData) {
|
||||
moGPUQAPData & operator=(const moGPUQAPData & _qapData) {
|
||||
|
||||
sizeData = _qapData.sizeData;
|
||||
a_h = new int[sizeData * sizeData];
|
||||
|
|
@ -116,7 +116,7 @@ public:
|
|||
* Destructor
|
||||
*/
|
||||
|
||||
~QAPData() {
|
||||
~moGPUQAPData() {
|
||||
GPUObject.memFree(a_d);
|
||||
GPUObject.memFree(b_d);
|
||||
delete[] a_h;
|
||||
Loading…
Add table
Add a link
Reference in a new issue