Skip to content

Commit a0dbb7d

Browse files
committed
Rename functions
1 parent 26c4205 commit a0dbb7d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

FastChwHwcConverter.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ namespace whyb {
138138
}
139139
#else
140140
#ifdef USE_OPENMP
141-
// openmp
141+
// OpenMP
142142
const size_t hw_stride = w * h;
143143
const size_t chunk_size = hw_stride / get_num_threads();
144144
#pragma omp parallel
@@ -252,7 +252,7 @@ namespace whyb {
252252
}
253253
#else
254254
#ifdef USE_OPENMP
255-
// openmp
255+
// OpenMP
256256
const size_t hw_stride = w * h;
257257
const size_t chunk_size = hw_stride / get_num_threads();
258258
#pragma omp parallel

test/cuda_benchmark.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <chrono>
55

66
#include "FastChwHwcConverterCuda.hpp"
7-
#define TEST_COUNT 100
7+
#define TEST_COUNT 10000
88

99
int main() {
1010
if (!whyb::nvidia::init()) { return 0; }
@@ -52,7 +52,7 @@ int main() {
5252
for (size_t i = 0; i < TEST_COUNT; ++i) {
5353

5454
// 1. host memory
55-
//whyb::hwc2chw_cuda(height, width, channel, (uint8_t*)src_uint8.data(), (float*)src_float.data(), 1.f/255.f);
55+
//whyb::nvidia::hwc2chw(height, width, channel, (uint8_t*)src_uint8.data(), (float*)src_float.data(), 1.f/255.f);
5656

5757
// 2. device memory
5858
whyb::nvidia::hwc2chw(height, width, channel, src_uint8, src_float, 1.f / 255.f);
@@ -65,7 +65,7 @@ int main() {
6565
for (size_t i = 0; i < TEST_COUNT; ++i) {
6666

6767
// 1. host memory
68-
//whyb::chw2hwc_cuda(channel, height, width, (float*)out_float.data(), (uint8_t*)out_uint8.data(), 255.f);
68+
//whyb::nvidia::chw2hwc_cuda(channel, height, width, (float*)out_float.data(), (uint8_t*)out_uint8.data(), 255.f);
6969

7070
// 2. device memory
7171
whyb::nvidia::chw2hwc(channel, height, width, out_float, out_uint8, 255.f);

test/rocm_benchmark.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <chrono>
55

66
#include "FastChwHwcConverterROCm.hpp"
7-
#define TEST_COUNT 100
7+
#define TEST_COUNT 10000
88

99
int main() {
1010
if (!whyb::amd::init()) { return 0; }

0 commit comments

Comments
 (0)