Skip to content

Commit bd3ed08

Browse files
committed
Use different header for logged types
When counting the FLOPs, different header files with the logged types need to be used. The user has to make sure those are created and accessible.
1 parent 0cfc6c1 commit bd3ed08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyop2/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4265,7 +4265,7 @@ def total_flops(self):
42654265
'DEFINITIONS':definitions,
42664266
'DEALLOCATIONS':deallocations,
42674267
'KERNEL_NAME':self._kernel.name,
4268-
'KERNEL_CODE':self._kernel.code(),
4268+
'KERNEL_CODE':self._kernel.code().replace('.h','_LOGGED.h'),
42694269
'PARAMETERS':parameters}
42704270
s = code.replace('double','LoggedDouble').replace('float','LoggedDouble')
42714271
cppargs = ["-I%s" % d for d in self._kernel._include_dirs]

0 commit comments

Comments
 (0)