Add new tests
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2268 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
ab91178343
commit
201a89316c
4 changed files with 351 additions and 4 deletions
|
|
@ -36,7 +36,7 @@
|
|||
#include <cassert>
|
||||
#include <iostream>
|
||||
#include <memory/moGPUAllocator.h>
|
||||
#include <memory/moGPUDisallocator.h>
|
||||
#include <memory/moGPUDeallocator.h>
|
||||
#include <memory/moGPUCopy.h>
|
||||
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ int main() {
|
|||
int * cpy_data;
|
||||
int * d_data;
|
||||
moGPUAllocator alloc;
|
||||
moGPUDisallocator disalloc;
|
||||
moGPUDeallocator disalloc;
|
||||
moGPUCopy cpy;
|
||||
int i=0;
|
||||
|
||||
|
|
@ -82,8 +82,8 @@ int main() {
|
|||
for(i=0;i<5;i++)
|
||||
assert(cpy_data[i]==i*2);
|
||||
|
||||
//test GPU memory disallocation
|
||||
disalloc(d_data);
|
||||
//test GPU memory deallocation
|
||||
dealloc(d_data);
|
||||
|
||||
delete[] h_data;
|
||||
delete[] cpy_data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue