Files
rocm-systems/projects/hip/tests
Evgeny Mankov 82900a1888 Attribute hipDeviceAttributeIsMultiGpuBoard for obtaining Device property isMultiGpuBoard is added.
On HIP path property obtaining done through hsa_iterate_agents and counting the devices of HSA_DEVICE_TYPE_GPU type.

P.S.
On multi-boards systems it might be problems with detection what board a GPU plugged into (not tested).


[ROCm/hip commit: 57e212606d]
2016-02-25 23:44:39 +03:00
..
2016-02-11 13:06:58 +05:30

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