Fichiers
rocm-systems/tests
Ben Sander ab910efb96 hipHostRegister and hipHostMalloc refactor.
Note hipHostMalloc (not hipHostAlloc or hipMallocHost).
 -  the hipHost* is used for all HIP APIs dealing with Host memory.
    (including hipHostMalloc, hipHostFree, hipHostRegister,
hipHostUnregister, hipHostGetFlags, hipHostGetDevicePointer).
  - hipMallocHost is consistent with "hipMalloc" for allocating device
    memory.  Enumerations hipHostMalloc* also used as optional
    flags parm to hipHostMalloc.
2016-03-22 02:30:10 -05:00
..
2016-02-26 19:39:14 -06:00

Tests uses CMAKE as teh build infrastructure.

Use :

$ mkdir build
$ cd build
$ cmake ../src
$ make
$ make test

#-----

How to add a new test

edit src/CMakeFiles to add the test:

add the executable and list of required CPP files, ie:

make_test (EXE CPP_FILES)
make_hip_executable (hipMemset hipMemset.cpp)

Add to automated Test framework:

make_test (TESTNAME ARGS)
make_test(hipMemset " ")

Running tests:

make test

Run a specific test:

./hipMemset