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

Install Axom with RAJA on Windows #982

Closed
tlorentz77 opened this issue Dec 23, 2022 · 6 comments · Fixed by #987
Closed

Install Axom with RAJA on Windows #982

tlorentz77 opened this issue Dec 23, 2022 · 6 comments · Fixed by #987
Assignees
Labels
TPL Issues related to Axom's third party libraries User Request Issues related to user requests Windows Related to Windows development

Comments

@tlorentz77
Copy link

Hi there,

Could you please update the port file of Axom in vcpkg to integrate RAJA lib?

It seems that RAJA can be build on Windows with capability of OPENMP now.

@kennyweiss kennyweiss added TPL Issues related to Axom's third party libraries User Request Issues related to user requests Windows Related to Windows development labels Dec 27, 2022
@kennyweiss kennyweiss self-assigned this Dec 28, 2022
@kennyweiss
Copy link
Member

@tlorentz77 -- our vcpkg can now build RAJA with OpenMP on Windows through uberenv

@tlorentz77
Copy link
Author

tlorentz77 commented Jan 31, 2023

Thank you @kennyweiss and sorry for the late feedback. I successfully build axom based on vcpkg now, but failed to search the axom using find_package. It reports that there is no camp-config.cmake file in the direcotry. The reason is that the PATHS provided in file axom-config.cmake.in (as shown in the follow) is not compatible with vcpkg. In vcpkg the package config files like xxxx-config.cmake are usually in directory like xxx/share/camp. So I think the file axom-config.cmake.in should be update as well if we want to use axom as TPL on Windows platform.

  if(AXOM_USE_CAMP)
    set(AXOM_CAMP_DIR      "@CAMP_DIR@")
    if(NOT CAMP_DIR) 
      set(CAMP_DIR ${AXOM_CAMP_DIR})
    endif()
    find_dependency(camp REQUIRED NO_DEFAULT_PATH PATHS "${CAMP_DIR}/lib/cmake/camp")
  endif()

Could you please provide an axom-project-template just like RAJA-project-template (https://github.com/LLNL/RAJA-project-template)? It would be helpful for users who are not familiar with axom. Thank you very much!

@kennyweiss
Copy link
Member

Thanks @tlorentz77 -- We currently build and test axom+raja+umpire+openmp+mfem+conduit using vcpkg (through uberenv), but have not yet taken the next step of importing that axom into another project.

We have similar examples to the RAJA-project-template in axom/src/examples/using-with-{blt,cmake,make} -- https://github.com/LLNL/axom/tree/develop/src/examples -- and describe them in our Quickstart guide -- https://axom.readthedocs.io/en/develop/docs/sphinx/quickstart_guide/zero_to_axom.html

Our unix-based CI exercises the using-with- examples, but our Windows CI does not. I'll create a new issue to fix this and to add it to our Windows CI.

@tlorentz77
Copy link
Author

Thanks very much. @kennyweiss

@tlorentz77
Copy link
Author

Hello @kennyweiss , thanks for your help. However I still failed to import Axom as a TPL on Windows after a few days of work. It would be appreciated if you can create a new issue to add the example.

@kennyweiss
Copy link
Member

Thanks for the reminder @tlorentz77.

I created #1028 to track this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TPL Issues related to Axom's third party libraries User Request Issues related to user requests Windows Related to Windows development
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants