Skip to content

Commit 4e889f9

Browse files
committed
minor cleanup
1 parent 2716d73 commit 4e889f9

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

libvmaf/src/feature/cuda/integer_adm_cuda.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ void adm_dwt2_s123_combined_device(AdmStateCuda *s,const int32_t *d_i4_scale, in
149149
const int BLOCK_Y = (h + 1) / 2;
150150

151151
void * args_vert[] = {&d_i4_scale, &tmp_buf, &w, &h, &img_stride, &*p};
152-
const int num_threads = 128;
153152
switch (scale) {
154153
case 1:
155154
CHECK_CUDA(cuLaunchKernel(s->func_dwt_s123_combined_vert_kernel_0_0_int32_t,

libvmaf/src/feature/cuda/integer_psnr_cuda.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@
2323
#include <stddef.h>
2424
#include <string.h>
2525

26+
#include "common.h"
2627
#include "cuda_helper.cuh"
27-
#include "libvmaf/vmaf_cuda_state.h"
28-
#include "picture_cuda.h"
2928

3029
#include "feature_collector.h"
3130
#include "feature_extractor.h"
@@ -231,13 +230,8 @@ static int extract_fex_cuda(VmafFeatureExtractor *fex,
231230
CHECK_CUDA(cuEventRecord(s->event, vmaf_cuda_picture_get_stream(ref_pic)));
232231
// This event ensures the input buffer is consumed
233232
CHECK_CUDA(cuStreamWaitEvent(s->str, s->event, CU_EVENT_WAIT_DEFAULT));
234-
// CHECK_CUDA(cuCtxPushCurrent(fex->cu_state->ctx));
235-
// CHECK_CUDA(cuEventDestroy(s->event));
236-
// CHECK_CUDA(cuEventCreate(&s->event, CU_EVENT_DEFAULT));
237-
// CHECK_CUDA(cuCtxPopCurrent(NULL));
238233

239-
// Download sad
240-
// CHECK_CUDA(cuStreamSynchronize(s->host_stream));
234+
// Download SSE
241235
CHECK_CUDA(cuMemcpyDtoHAsync(s->sse_host, (CUdeviceptr)s->sse_device->data,
242236
sizeof(uint64_t) * 3, s->str));
243237
CHECK_CUDA(cuEventRecord(s->finished, s->str));

libvmaf/src/libvmaf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ static int translate_picture_device(VmafContext *vmaf, VmafPicture *pic,
593593
return err;
594594
}
595595

596-
err = vmaf_cuda_picture_download_async(pic, pic_host, 0x3);
596+
err = vmaf_cuda_picture_download_async(pic, pic_host, 0xF);
597597
if (err) {
598598
vmaf_log(VMAF_LOG_LEVEL_ERROR,
599599
"problem moving cuda pic into host buffer\n");

0 commit comments

Comments
 (0)