Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge CMake build process and Python wrapper shared library into main #14

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

adamant-pwn
Copy link
Collaborator

I tried my best to only salvage what was really necessary from tflite2 branch. I'd really appreciate some external review and verification that it works as intended after the merge.

@canfirtina
Copy link
Member

Thanks @adamant-pwn. Is this only the CMake integration or more?

reg0->maps[m].tags);
if(reg0->maps[m].tags) {free(reg0->maps[m].tags); reg0->maps[m].tags = NULL;}
}
if(!p->su_stop || k < p->su_stop){
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most changes in this file are trivial (i.e. remove static), but this one looks like a refactoring that was done in tflite2 branch, but not in main. I essentially copied this block from tflite2, so it'd be nice for @canfirtina to confirm that there were no substantial changes from the main that were overwritten.

@adamant-pwn
Copy link
Collaborator Author

adamant-pwn commented Dec 9, 2024

@canfirtina this includes:

  • CMake integration;
  • Docker image and GitHub workflow to verify the build;
  • Shared library that should be usable with a Python wrapper from here.

What it does not include yet:

  • The Python implementation of the wrapper (should I add it to this PR?);
  • Anything related to TensorFlow;
  • rawhash_ruclient.cpp that Max added for itegration with readuntil_fake, as I'm not sure if we plan to merge it + it would require more changes; But it does include some CMake files related to it, should I remove them from the PR?
  • Anything else from tflite2 branch, of which I might be unaware.

if(RUCLIENT_ENABLED)
set_target_properties(${TARGET_NAME} PROPERTIES CXX_STANDARD 20)
target_compile_definitions(${TARGET_NAME} PRIVATE RUCLIENT_ENABLED)
target_sources(${TARGET_NAME} PRIVATE rawhash_ruclient.cpp)
Copy link
Collaborator Author

@adamant-pwn adamant-pwn Dec 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I'm not sure about whether we plan to keep using rawhash_ruclient.cpp or stick to Python client, we might also want to drop this file altogether. Any thoughts?

@adamant-pwn adamant-pwn mentioned this pull request Dec 9, 2024
@adamant-pwn adamant-pwn changed the title merge CMake build process and Python wrapper into main merge CMake build process and Python wrapper shared library into main Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants