Skip to content

Commit f33e07f

Browse files
SelvamArulmingyuliutw
authored andcommitted
Python3 compatibility. (NVIDIA#39)
1 parent 208d4f6 commit f33e07f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

smooth_filter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@
329329

330330

331331
def smooth_local_affine(output_cpu, input_cpu, epsilon, patch, h, w, f_r, f_e):
332-
program = Program(src, 'best_local_affine_kernel.cu')
333-
ptx = program.compile(['-I/usr/local/cuda-9.1/include'])
332+
program = Program(src.encode('utf-8'), 'best_local_affine_kernel.cu'.encode('utf-8'))
333+
ptx = program.compile(['-I/usr/local/cuda-9.1/include'.encode('utf-8')])
334334
m = function.Module()
335335
m.load(bytes(ptx.encode()))
336336

0 commit comments

Comments
 (0)