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

Recommendations for building applications with CMake and hipfort #39

Open
fluidnumerics-joe opened this issue Nov 24, 2020 · 2 comments

Comments

@fluidnumerics-joe
Copy link
Contributor

I’m looking to understand how we want to support the use of hipfort in the CMake build system. Currently, I’m finding that I have to set FC, CC, and CXX all equal to hipfc in order to build an application that depends on hipfort.

Further, when building distributions for multiple hardware vendors, it’s not clear how to specify the target hardware (—offload-arch does not work to build for nvidia hardware when nvidia hardware is not present).

I’m looking for some guidance on how we should be incorporating hipfc into CMake build systems and how to specify target architectures, even when the target architecture is not present on the build platform.

@drtpotter
Copy link

A set of hipfort CMAKE library targets would certainly be nice! Something that would do hipfc's job of linking to either CUDA or AMD libaries so we aren't forced to use hipfc.

@drtpotter
Copy link

It is not great to have to pass --offload-arch to hipfc in order for it to compile for a CUDA backend. The environment variable $HIP_PLATFORM should be all that is requried.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants