-
Notifications
You must be signed in to change notification settings - Fork 9
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
Python 2 requirement #6
Comments
Okay, it looks like the switch was made in v2.4 of CTemplate: OlafvdSpek/ctemplate@ee11ba1 Since Python 2 is now unsupported, some environments don't provide it anymore. Replacing the old tarball (https://github.com/UCL-CCS/HemePure-GPU/blob/master/dep/src/ctemplate-2.3.tar.gz) with the new one (https://github.com/OlafvdSpek/ctemplate/releases/tag/ctemplate-2.4) would be the solution. |
Replacing the tarball with the new version or simply using the
The configure script is only available after To fix this I had to patch this line: HemePure-GPU/dep/CMakeLists.txt Line 229 in a398c30
- CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> ${CTEMPLATE_CONFIGURE_OPTIONS}
+ CONFIGURE_COMMAND <SOURCE_DIR>/autogen.sh && <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> ${CTEMPLATE_CONFIGURE_OPTIONS} |
I was finally able to build CTemplate now 🚀
It did however choke with the NVIDIA |
Hi Ivan,
Another alternative is to use python's function 2to3 to convert the python
scripts that cause the problem.
So when it complains about the python 2 files (there will be 2 in total)
you can do the conversion by using
2to3 - w path_to_python_file/python_file.py
You will do that twice.
I will get back to you in a while with more details regarding these files.
Best,
Ioannis
…On Wed, 3 May 2023, 13:21 Ivan Pribec, ***@***.***> wrote:
I was finally able to build CTemplate now 🚀
[100%] Completed 'CTemplate'
[100%] Built target CTemplate
It did however choke with the NVIDIA nvc/nvc++ compiler, so I switched to
gcc for the dependency libraries.
—
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMNBIMBMHDKFCRAGCFZXX2DXEIWRVANCNFSM6AAAAAAXUEAZKM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thanks for the tip, I was not aware of the 2to3 tool. 👍🏻 The environment I'm working in is somewhat restricted, I have no pip access, and only Python 3.9 is available by default. Not even automake/autoreconf were present to build CTemplate, but I got hold of them through a module. As far as I can see, the only difference in CTemplate v2.4 is the switch to Python 3. It is also used in HemePure-CPU Spack build: https://github.com/compbiomedeu/compbiomed-spack/blob/main/packages/ctemplate/package.py#L33 |
I understand what pain this can be... On a different note I got rid of the memory allocations inside the GPU kernels that were causing a problem with porting to oneapi. So I should be able to make progress on that task soon. I just need to finalize a few other things this week with the hipified code first. I will keep you posted Best, Ioannis Sent from my phone-------- Original message --------From: Ivan Pribec ***@***.***>Date: Wed, 3 May 2023, 13:35To: UCL-CCS/HemePure-GPU ***@***.***>Cc: izacharo ***@***.***>, Comment ***@***.***>Subject: Re: [UCL-CCS/HemePure-GPU] Python 2 requirement (Issue #6)
Thanks for the tip, I was not aware of the 2to3 tool. 👍🏻
The environment I'm working in is somewhat restricted, I have no pip access, and only Python 3.9 is available by default. Not even automake/autoreconf were present to build CTemplate, but I got hold of them through a module.
As far as I can see, the only difference in CTemplate v2.4 is the switch to Python 3. It is also used in HemePure-CPU Spack build: https://github.com/compbiomedeu/compbiomed-spack/blob/main/packages/ctemplate/package.py#L33
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Yes it should be (@ivan-pi). Though I think that the HIP branch (https://github.com/UCL-CCS/HemePure-GPU/tree/HIP) still does not have the merge |
Attempting to build this project from source, I noticed the packaged CTemplate version has a Python 2 build/installation requirement:
There has only been one new CTemplate release (v2.4), but I haven't yet inspected if it was replaced with Python 3.
The text was updated successfully, but these errors were encountered: