Skip to content
Snippets Groups Projects

WIP: Cuda autotune

Closed Stephan Seitz requested to merge seitz/pystencils:cuda-autotune into master
Files
3
+ 11
1
@@ -175,9 +175,15 @@ def read_config():
('object_cache', os.path.join(user_cache_dir('pystencils'), 'objectcache')),
('clear_cache_on_start', False),
])
default_cuda_config = OrderedDict([
('always_autotune', False),
('preferred_block_size', (16, 16, 1)),
])
default_config = OrderedDict([('compiler', default_compiler_config),
('cache', default_cache_config)])
('cache', default_cache_config),
('cuda', default_cuda_config)
])
config_path, config_exists = get_configuration_file_path()
config = default_config.copy()
@@ -219,6 +225,10 @@ def get_cache_config():
return _config['cache']
def get_cuda_config():
return _config['cuda']
def add_or_change_compiler_flags(flags):
if not isinstance(flags, list) and not isinstance(flags, tuple):
flags = [flags]