Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Use different header for logged types
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
eikehmueller committed Aug 30, 2016
1 parent 0cfc6c1 commit bd3ed08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyop2/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4265,7 +4265,7 @@ def total_flops(self):
'DEFINITIONS':definitions,
'DEALLOCATIONS':deallocations,
'KERNEL_NAME':self._kernel.name,
'KERNEL_CODE':self._kernel.code(),
'KERNEL_CODE':self._kernel.code().replace('.h','_LOGGED.h'),
'PARAMETERS':parameters}
s = code.replace('double','LoggedDouble').replace('float','LoggedDouble')
cppargs = ["-I%s" % d for d in self._kernel._include_dirs]
Expand Down

0 comments on commit bd3ed08

Please sign in to comment.