@@ -306,22 +306,18 @@ def _init_driver(self):
306
306
self .option_keys .append (_driver .CUjit_option .CU_JIT_FMA )
307
307
if self .kernels_used is not None :
308
308
for kernel in self .kernels_used :
309
- self .formatted_options .append (kernel )
309
+ self .formatted_options .append (kernel . encode () )
310
310
self .option_keys .append (_driver .CUjit_option .CU_JIT_REFERENCED_KERNEL_NAMES )
311
311
if self .variables_used is not None :
312
312
for variable in self .variables_used :
313
- self .formatted_options .append (variable )
313
+ self .formatted_options .append (variable . encode () )
314
314
self .option_keys .append (_driver .CUjit_option .CU_JIT_REFERENCED_VARIABLE_NAMES )
315
315
if self .optimize_unused_variables is not None :
316
316
self .formatted_options .append (1 ) # ctypes.c_int32(1)
317
317
self .option_keys .append (_driver .CUjit_option .CU_JIT_OPTIMIZE_UNUSED_DEVICE_VARIABLES )
318
318
if self .xptxas is not None :
319
319
for opt in self .xptxas :
320
- self .formatted_options .append (opt )
321
- self .option_keys .append (_driver .CUjit_option .CU_JIT_FAST_COMPILE )
322
- if self .split_compile is not None :
323
- self .formatted_options .append (self .split_compile )
324
- self .option_keys .append (_driver .CUjit_option .CU_JIT_THREADS_PER_BLOCK )
320
+ raise NotImplementedError ("TODO: implement xptxas option" )
325
321
if self .split_compile_extended is not None :
326
322
self .formatted_options .append (self .split_compile_extended )
327
323
self .option_keys .append (_driver .CUjit_option .CU_JIT_MIN_CTA_PER_SM )
0 commit comments