Comments (7)
Could you run the following and report back what is says?
import sys
import logging
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
import conifer
conifer.utils._ap_include()
Can you check that the path that your sourced the settings from is correct?
from conifer.
Can you please share more of the error message?
from conifer.
With Vivado installed you should setup the tools like (change for your Vivado install path):
source /path/to/Xilinx/Vivado/2019.2/settings.sh
You can check that one of the required environment variables is set like:
echo $XILINX_VIVADO
Then during the logging of the example you should see a message like:
DEBUG:conifer.utils.misc:Including ap_ headers from XILINX_VIVADO: -I/path/to/Xilinx/Vivado/2019.2/include
from conifer.
Greetings I used the same command line 'source /path/to/Xilinx/Vivado/2019.2/settings.sh' but still getting the same error. Any help i can get from this
522 if ap_include is None:
523 os.chdir(curr_dir)
--> 524 raise Exception("Couldn't find Xilinx ap_ headers. Source the Vivado/Vitis HLS toolchain, or set XILINX_AP_INCLUDE environment variable.")
525 cmd = f"g++ -O3 -shared -std=c++14 -fPIC $({_py_executable()} -m pybind11 --includes) {ap_include} {gcc_opts()} bridge.cpp firmware/BDT.cpp firmware/{cfg.project_name}.cpp -o conifer_bridge{self._stamp}.so"
526 logger.debug(f'Compiling with command {cmd}')
Exception: Couldn't find Xilinx ap_ headers. Source the Vivado/Vitis HLS toolchain, or set XILINX_AP_INCLUDE environment variable.
from conifer.
Its running fine now, the conifer can find the Xilinx on my env. Thank You!
from conifer.
But theres an error that also encounter during the execution on i will share it
529 if ret_val != 0:
530 raise Exception(f'Failed to compile project {cfg.project_name}')
531 except:
Exception: Failed to compile project my_prj
During handling of the above exception, another exception occurred:
from conifer.
sh: line 1: g++: command not found
Exception Traceback (most recent call last)
File ~/.local/lib/python3.12/site-packages/conifer/backends/xilinxhls/writer.py:530, in XilinxHLSModel.compile(self)
529 if ret_val != 0:
--> 530 raise Exception(f'Failed to compile project {cfg.project_name}')
531 except:
Exception: Failed to compile project proj
During handling of the above exception, another exception occurred:
Exception Traceback (most recent call last)
Cell In[42], line 4
1 #cnf = conifer.model(clf, conifer.converters.sklearn, conifer.backends.vivadohls, cfg)
2 #cnf.compile()
3 cnf = conifer.converters.convert_from_sklearn(clf,cfg)
----> 4 cnf.compile()
File ~/.local/lib/python3.12/site-packages/conifer/backends/xilinxhls/writer.py:533, in XilinxHLSModel.compile(self)
531 except:
532 os.chdir(curr_dir)
--> 533 raise Exception(f'Failed to compile project {cfg.project_name}')
535 try:
536 logger.debug(f'Importing conifer_bridge_{self.stamp} from conifer_bridge{self._stamp}.so')
Exception: Failed to compile project proj
from conifer.
Related Issues (20)
- xgboost precision HOT 2
- xgboost example VivadoHLS segfault HOT 5
- Long synthesis time on Vitis HOT 2
- ONNX Conversion Fails with ONNX model produced from xgboost
- XGBoost feature error HOT 4
- Random Forest
- `ImportError: cannot import name 'backends'` when importing conifer HOT 2
- 'XGBClassifer' object has no attribute 'save config' HOT 5
- Bitstream generation feature HOT 3
- Type error 'module' object is not callable HOT 2
- Not working on Windows ? HOT 2
- VHDL Backend : Missing assignement in AddReduce.vhd ? HOT 7
- XGBoost 2.0.0 HOT 2
- README links broken HOT 1
- RF results HOT 2
- Expression balancing HOT 6
- Vivado HLS build broken
- Vivado simulation for VHDL backend
- scikit-learn AdaBoostClassifier
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conifer.