ファイル
rocm-systems/projects/hip/tests
Evgeny Mankov fcd154097f Fix typo: maxThreadsPerMultiProcessor -> MaxSharedMemoryPerMultiprocessor
Device property MaxSharedMemoryPerMultiprocessor set equal to totalGlobalMem (HIP path).
Reason: MaxSharedMemoryPerMultiprocessor should be as the same as group memory size. Group memory will not be paged out, so, the physical memory size = total shared memory size = group region size. NVCC path remains untouched: CUDA's device property MaxSharedMemoryPerMultiprocessor is reported.

hipify is updated as well.


[ROCm/hip commit: ea8f99702d]
2016-02-12 01:29:20 +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