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

add flags to Makefile for Frontier and update README #10

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

adistomar
Copy link
Contributor

@adistomar adistomar commented Apr 1, 2024

Also updates README instructions for loading different modules based on which cluster you're running on

@adistomar adistomar mentioned this pull request Apr 1, 2024
@adistomar adistomar changed the title add flags for ROCm and RCCL add flags to Makefile for ROCm and RCCL Apr 1, 2024
README.md Outdated
```
### Frontier
```sh
module load PrgEnv-cray amd-mixed craype-accel-amd-gfx90a

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to load a specific version of ROCM here? the default is 5.3.0 which is a bit low maybe

Makefile Outdated

# frontier flags
INC = -L${ROCM_PATH}/lib -lamdhip64
CFLAGS = -std=c++11 -D__HIP_ROCclr__ -D__HIP_ARCH_GFX90A__=1 --rocm-path=${ROCM_PATH} --offload-arch=gfx90a -x hip -DUSE_ROCM -DUSE_RCCL

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is -O2 not enabled here?

Makefile Outdated
# LDFLAGS = -L/global/common/software/nersc9/nccl/2.19.4/lib -lnccl

# frontier flags
INC = -L${ROCM_PATH}/lib -lamdhip64

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Both of these should probably go to LDFLAGS.
  2. do we not want to add something like -I${ROCM_PATH}/include like we do for perlmutter

Makefile Outdated

# frontier flags
INC = -L${ROCM_PATH}/lib -lamdhip64
CFLAGS = -std=c++11 -D__HIP_ROCclr__ -D__HIP_ARCH_GFX90A__=1 --rocm-path=${ROCM_PATH} --offload-arch=gfx90a -x hip -DUSE_ROCM -DUSE_RCCL

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--rocm-path=${ROCM_PATH} is duplicated in LDFLAGS

@adistomar adistomar changed the title add flags to Makefile for ROCm and RCCL add flags to Makefile for Frontier Apr 26, 2024
@adistomar adistomar changed the title add flags to Makefile for Frontier add flags to Makefile for Frontier and update README Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants