File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -53,30 +53,30 @@ class HostAccessor(Accessor):
5353
5454 def memory_range (self , dim ):
5555 eval_string = "((" + str (self .obj .type ) + ")" + str (self .obj ) + ")->getMemoryRange()"
56- return gdb .parse_and_eval (eval_string )["common_array" ][dim ];
56+ return gdb .parse_and_eval (eval_string )["common_array" ][dim ]
5757
5858 def offset (self , dim ):
5959 eval_string = "((" + str (self .obj .type ) + ")" + str (self .obj ) + ")->getOffset()"
60- return gdb .parse_and_eval (eval_string )["common_array" ][dim ];
60+ return gdb .parse_and_eval (eval_string )["common_array" ][dim ]
6161
6262 def data (self ):
6363 eval_string = "((" + str (self .obj .type ) + ")" + str (self .obj ) + ")->getPtr()"
64- return gdb .parse_and_eval (eval_string );
64+ return gdb .parse_and_eval (eval_string )
6565
6666class HostAccessorLocal (HostAccessor ):
6767 """For Host device memory layout"""
6868
6969 def memory_range (self , dim ):
7070 eval_string = "((" + str (self .obj .type ) + ")" + str (self .obj ) + ")->getSize()"
71- return gdb .parse_and_eval (eval_string )["common_array" ][dim ];
71+ return gdb .parse_and_eval (eval_string )["common_array" ][dim ]
7272
7373 def index (self , arg ):
7474 if arg .type .code == gdb .TYPE_CODE_INT :
7575 return int (arg )
7676 result = 0
7777 for dim in range (self .depth ):
7878 result = (
79- result * self .memory_range () + arg ["common_array" ][dim ]
79+ result * self .memory_range (dim ) + arg ["common_array" ][dim ]
8080 )
8181 return result
8282
You can’t perform that action at this time.
0 commit comments