ROCm / HIPIFY

HIPIFY: Convert CUDA to Portable C++ Code
https://rocm.docs.amd.com/projects/HIPIFY/en/latest/
MIT License
500 stars 70 forks source link

[HIPIFY] Makefile generation #1132

Closed alvin546 closed 4 months ago

alvin546 commented 10 months ago

Is there any option available to migrate or generate Makefile/build file in hipify-clang?

emankov commented 10 months ago

Could you provide us with more details on what you mean by "migrate or generate" Makefile/build, please?

alvin546 commented 10 months ago

I am currently engaged in a project that comprises over 100 files. While attempting to migrate it using HIPIFY, I've observed that the tool exclusively recognizes .cu files for conversion. Consequently, I find myself responsible for independently crafting a Makefile to facilitate the compilation of these files. Could you please clarify whether HIPIFY supports the automatic generation of Makefiles to streamline this process?

emankov commented 10 months ago

Which HIPIFY tool were you using?

alvin546 commented 10 months ago

I'm using this

emankov commented 8 months ago

Hello, @alvin546,

First, sorry for the delayed answer.

While attempting to migrate it using HIPIFY, I've observed that the tool exclusively recognizes .cu files for conversion.

It is not so. Both hipify-clang and hipify-perl can hipify any files despite their extensions.

Are you using some additional scripts on top of hipify-clang?

Could you please clarify whether HIPIFY supports the automatic generation of Makefiles to streamline this process?

HIPIFY tools can only accomplish a source-to-source translation of the CUDA files into HIP files. Multiple source files are also supported. You can also provide a compilation database compile_commands.json for your hipification. Additionally, hipify-clang is able to generate hipify-perl and CUDA2HIP documentation, but not build files.

emankov commented 4 months ago

Closed as answered.