[SWDEV-442583] - Fix for hipMemset performance tests
Change-Id: Id4f0d82551aaad6b7054660f318421e062c74c64
Этот коммит содержится в:
коммит произвёл
Rakesh Roy
родитель
26223a792b
Коммит
eeaa39f2bf
@@ -33,7 +33,7 @@ THE SOFTWARE.
|
||||
class MemsetD16Benchmark : public Benchmark<MemsetD16Benchmark> {
|
||||
public:
|
||||
MemsetD16Benchmark(LinearAllocs allocation_type, size_t size)
|
||||
: dst_(allocation_type, size), size_(size) {}
|
||||
: dst_(allocation_type, size * sizeof(int16_t)), size_(size) {}
|
||||
|
||||
void operator()() {
|
||||
TIMED_SECTION(kTimerTypeEvent) {
|
||||
|
||||
@@ -33,7 +33,7 @@ THE SOFTWARE.
|
||||
class MemsetD16AsyncBenchmark : public Benchmark<MemsetD16AsyncBenchmark> {
|
||||
public:
|
||||
MemsetD16AsyncBenchmark(LinearAllocs allocation_type, size_t size)
|
||||
: dst_(allocation_type, size), size_(size), stream_(Streams::created) {}
|
||||
: dst_(allocation_type, size * sizeof(int16_t)), size_(size), stream_(Streams::created) {}
|
||||
|
||||
void operator()() {
|
||||
TIMED_SECTION_STREAM(kTimerTypeEvent, stream_.stream()) {
|
||||
|
||||
@@ -33,7 +33,7 @@ THE SOFTWARE.
|
||||
class MemsetD32Benchmark : public Benchmark<MemsetD32Benchmark> {
|
||||
public:
|
||||
MemsetD32Benchmark(LinearAllocs allocation_type, size_t size)
|
||||
: dst_(allocation_type, size), size_(size) {}
|
||||
: dst_(allocation_type, size * sizeof(int32_t)), size_(size) {}
|
||||
|
||||
void operator()() {
|
||||
TIMED_SECTION(kTimerTypeEvent) {
|
||||
|
||||
@@ -33,7 +33,7 @@ THE SOFTWARE.
|
||||
class MemsetD32AsyncBenchmark : public Benchmark<MemsetD32AsyncBenchmark> {
|
||||
public:
|
||||
MemsetD32AsyncBenchmark(LinearAllocs allocation_type, size_t size)
|
||||
: dst_(allocation_type, size), size_(size), stream_(Streams::created) {}
|
||||
: dst_(allocation_type, size * sizeof(int32_t)), size_(size), stream_(Streams::created) {}
|
||||
|
||||
void operator()() {
|
||||
TIMED_SECTION_STREAM(kTimerTypeEvent, stream_.stream()) {
|
||||
|
||||
Ссылка в новой задаче
Block a user