提交 d4cc2ca5 authored 作者: Frederic Bastien's avatar Frederic Bastien

fix cuda optimization following the name change from __priority__ to __position__

上级 b3bb3006
...@@ -20,7 +20,7 @@ gpu_cut_copies = EquilibriumDB() ...@@ -20,7 +20,7 @@ gpu_cut_copies = EquilibriumDB()
gpu_seqopt = SequenceDB() gpu_seqopt = SequenceDB()
gpu_seqopt.register('gpu_local_optimizations', gpu_optimizer, 1, 'fast_run', 'inplace') gpu_seqopt.register('gpu_local_optimizations', gpu_optimizer, 1, 'fast_run', 'inplace')
gpu_seqopt.register('gpu_cut_transfers', gpu_cut_copies, 2, 'fast_run', 'inplace') gpu_seqopt.register('gpu_cut_transfers', gpu_cut_copies, 2, 'fast_run', 'inplace')
optdb.register('gpu', gpu_seqopt, optdb.__priority__.get('inplace_opt', 75) + 5) optdb.register('gpu', gpu_seqopt, optdb.__position__.get('inplace_opt', 75) + 5)
def register_opt(*tags, **kwargs): def register_opt(*tags, **kwargs):
def f(local_opt): def f(local_opt):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论