Skip to content

Commit

Permalink
Fix ap_ include in fixed point emulation utility
Browse files Browse the repository at this point in the history
  • Loading branch information
thesps committed Apr 3, 2023
1 parent 1a34760 commit d77d5d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conifer/utils/fixed_point.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import numpy as np
from conifer.utils.misc import _ap_include
import logging
logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -35,7 +36,7 @@ def __init__(self, type_string):

curr_dir = os.getcwd()
os.chdir(cpp_filedir)
cmd = f"g++ -O3 -shared -std=c++11 -fPIC $(python3 -m pybind11 --includes) -I/cvmfs/cms.cern.ch/slc7_amd64_gcc900/external/hls/2019.08/include/ {self.sani_type}.cpp -o {self.sani_type}.so"
cmd = f"g++ -O3 -shared -std=c++11 -fPIC $(python3 -m pybind11 --includes) {_ap_include()} {self.sani_type}.cpp -o {self.sani_type}.so"
logger.debug(f'Compiling with command {cmd}')
try:
ret_val = os.system(cmd)
Expand Down

0 comments on commit d77d5d8

Please sign in to comment.