KomputeProject / kompute

General purpose GPU compute framework built on Vulkan to support 1000s of cross vendor graphics cards (AMD, Qualcomm, NVIDIA & friends). Blazing fast, mobile-enabled, asynchronous and optimized for advanced GPU data processing usecases. Backed by the Linux Foundation.
http://kompute.cc/
Apache License 2.0
1.88k stars 145 forks source link

Issues with compiling python module ubuntu 22.04 #342

Closed evanokeeffe closed 5 months ago

evanokeeffe commented 8 months ago

Hey all, great library , using this is saving some amount of time on boiler code for our projects. I noticed there was some issues with compiling the project python module, thought I'd mention the fixes I've found.

In Logger.hpp there was some issues with the if statements when using logging with python and fmt, mainly redefinition of KP_DEBUG. In the build system using the standard install for ubuntu apt install libfmt8 libfmt-dev , this only installs a static library so FPIC needs to be added using the internal FMT package for build, this is needed for libfmt,kp_logger and then the python module .

doing this I know have python module built and with logging for Ubuntu 22.04

I'll send in a pull request with the needed changes for building the python modules

axsaucedo commented 8 months ago

Great to hear you have found the library useful - sounds good, let us know if any questions

axsaucedo commented 5 months ago

Closing this, reopening when revisiting