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

Patch hip::device target to allow compilation/running without FindHIP #541

Merged
merged 8 commits into from
Nov 8, 2021
Prev Previous commit
Next Next commit
build: add newer rzwhamo hostconfig
  • Loading branch information
joshessman-llnl committed Nov 3, 2021
commit 555c1b71581440165fdcfcf60ff3a0efc5d3fc5e
52 changes: 52 additions & 0 deletions host-configs/llnl/toss_4_x86_64_ib_cray/cce@12.0.3_clang_hip.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and
kennyweiss marked this conversation as resolved.
Show resolved Hide resolved
# other BLT Project Developers. See the top-level LICENSE file for details
#
# SPDX-License-Identifier: (BSD-3-Clause)

#------------------------------------------------------------------------------
# Example host-config file for the rzwhamo cluster at LLNL
#------------------------------------------------------------------------------
# This file provides CMake with paths / details for:
# C,C++, & Fortran compilers + MPI & HIP
# using tce wrappers, rather than HPE Cray PE compiler drivers
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# HPE Cray cce@12.0.3 compilers
#------------------------------------------------------------------------------
# _blt_tutorial_compiler_config_start
set(CCE_HOME "/usr/tce/packages/cce-tce/cce-12.0.3")
set(CMAKE_C_COMPILER "${CCE_HOME}/bin/craycc" CACHE PATH "")
set(CMAKE_CXX_COMPILER "${CCE_HOME}/bin/crayCC" CACHE PATH "")

# Fortran support
set(ENABLE_FORTRAN ON CACHE BOOL "")
set(CMAKE_Fortran_COMPILER "${CCE_HOME}/bin/crayftn" CACHE PATH "")
# _blt_tutorial_compiler_config_end

#------------------------------------------------------------------------------
# MPI Support
#------------------------------------------------------------------------------
# _blt_tutorial_mpi_config_start
joshessman-llnl marked this conversation as resolved.
Show resolved Hide resolved
set(ENABLE_MPI ON CACHE BOOL "")

set(MPI_HOME "/usr/tce/packages/cray-mpich-tce/cray-mpich-8.1.8-cce-12.0.3/")
set(MPI_C_COMPILER "${MPI_HOME}/bin/mpicc" CACHE PATH "")

set(MPI_CXX_COMPILER "${MPI_HOME}/bin/mpicxx" CACHE PATH "")

set(MPI_Fortran_COMPILER "${MPI_HOME}/bin/mpif90" CACHE PATH "")
# _blt_tutorial_mpi_config_end

#------------------------------------------------------------------------------
# HIP support
#------------------------------------------------------------------------------
# _blt_tutorial_hip_config_start
set(ENABLE_HIP ON CACHE BOOL "")

set(ROCM_PATH "/opt/rocm-4.5.0/" CACHE PATH "")
set(HIP_PLATFORM "clang" CACHE STRING "")
set(CMAKE_HIP_ARCHITECTURES "gfx908" CACHE STRING "gfx architecture to use when generating HIP/ROCm code")

# _blt_tutorial_hip_config_end