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

question. #5

Open
Noname400 opened this issue Jun 17, 2022 · 9 comments
Open

question. #5

Noname400 opened this issue Jun 17, 2022 · 9 comments

Comments

@Noname400
Copy link

Good afternoon. I hope you don't mind using your product as part of my project. Of course with reference to you.
but it is very difficult to combine the work of python and data output from dll. whether it is possible to make that the data output is controlled or output to a separate variable, which is preferable, or even turned off.
in fact, I only need to know the speed.
I will be grateful for your help.

and thanks again for your hard work. you help make Python faster, and the work of many programmers is easier

@iceland2k14
Copy link
Owner

Ok. No problem in reference.
Regarding the data output is currently controlled by dll itself but i can open it for customization from python side during the call function. Let me know which kind of display options will be ok.
Also i added a PreCompute branch which has some useful functions for the search although no chnge from display and no linux yet.

@Noname400
Copy link
Author

How can I control the output from the dll speed parameter. ?
to get it into a variable and output it in a controlled manner to the console.

@Noname400
Copy link
Author

I can hope for a positive decision ?

@iceland2k14
Copy link
Owner

Decision is Positive but will be delayed. My relative in ICU.

@Noname400
Copy link
Author

Я понимаю. Сочувствую вам. Я подожду сколько нужно. Спасибо

@iceland2k14
Copy link
Owner

@Noname400
Copy link
Author

I'm sorry, I probably didn't express myself correctly.
you have done almost everything you really wanted to integrate your script into another project.
but your dll all the same draws the conclusion itself and it is impossible to control this by a third-party project.
can it be done like this:
pvk_found, outer = run_cpu_kangaroo(tame_update_file, 0, range_en-range_st, dp, ncore, mx, rpub, dispset)
where outer is the output of the dll

@Noname400
Copy link
Author

in this case, it will be possible to display information from the dll in any place and at any desired time

@iceland2k14
Copy link
Owner

The problem to get return value in outer will be that this function run_cpu_kangaroo has to end.
Currently it only ends when range of 72057 trillion is complete and controlled by -n.
The display itself is set every 2 sec. So if we end this function every 2 sec, then we have to call it every time in a loop and so the time to prepare everything will be hugely diminish the advantage of this algo.

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

No branches or pull requests

2 participants