Skip to content
Merged

Rocm #206

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
c09a4f0
structure
hasindu2008 Sep 23, 2025
e023683
hipify f5cmisc_rocm.h
hasindu2008 Sep 23, 2025
b839c5a
use hip api
BonsonW Sep 23, 2025
b934f06
Merge branch 'hasindu2008:rocm' into rocm
BonsonW Sep 23, 2025
eaa0afc
fix
hasindu2008 Sep 23, 2025
babc5ef
Merge pull request #201 from BonsonW/rocm
hasindu2008 Sep 23, 2025
a6e7b9b
f5c.hip api
BonsonW Sep 23, 2025
2b41420
rename
BonsonW Sep 23, 2025
9db67ff
Merge pull request #202 from BonsonW/rocm
hasindu2008 Sep 23, 2025
35c981a
fix struct name
BonsonW Sep 23, 2025
7a487ed
Merge branch 'hasindu2008:rocm' into rocm
BonsonW Sep 23, 2025
496aaf1
Merge pull request #203 from BonsonW/rocm
hasindu2008 Sep 23, 2025
65f48a2
fix
hasindu2008 Sep 23, 2025
d1460e4
port align hip
BonsonW Sep 23, 2025
e28e034
Merge branch 'rocm' of github.com:hasindu2008/f5c into rocm
hasindu2008 Sep 23, 2025
1fd5fa3
Merge branch 'rocm' of github.com:BonsonW/f5c into rocm
BonsonW Sep 23, 2025
aeb0cf0
change make
hasindu2008 Sep 23, 2025
604d88b
Merge branch 'rocm' of github.com:BonsonW/f5c into rocm
BonsonW Sep 23, 2025
6eb7af4
fix erorrs
BonsonW Sep 23, 2025
a83e64e
Merge pull request #204 from BonsonW/rocm
hasindu2008 Sep 23, 2025
4410537
working
hasindu2008 Sep 23, 2025
d1fa675
rocm tests
hasindu2008 Sep 23, 2025
d6c1177
for rocm dont test methfreq
hasindu2008 Sep 23, 2025
7064658
add supp file
BonsonW Sep 23, 2025
859cb2a
igpu fix
hasindu2008 Sep 23, 2025
12bc55e
Merge branch 'hasindu2008:rocm' into rocm
BonsonW Sep 23, 2025
562ab7a
fix
hasindu2008 Sep 23, 2025
a081020
fix
hasindu2008 Sep 23, 2025
1b98d17
Merge branch 'hasindu2008:rocm' into rocm
BonsonW Sep 23, 2025
79e7c60
beautify error
hasindu2008 Sep 23, 2025
9ea7acc
Merge branch 'hasindu2008:rocm' into rocm
BonsonW Sep 24, 2025
6cbc025
hacky rocm pack script
hasindu2008 Sep 25, 2025
17bc0ca
mis300
hasindu2008 Sep 25, 2025
9515938
fix script
hasindu2008 Sep 25, 2025
bfdedf5
fix
hasindu2008 Sep 25, 2025
35099ca
Merge branch 'hasindu2008:rocm' into rocm
BonsonW Oct 2, 2025
3ea9f90
check after kernel launch
BonsonW Oct 3, 2025
4d74388
Merge branch 'rocm' of github.com:BonsonW/f5c into rocm
BonsonW Oct 3, 2025
c0b499b
added checks to legacy
BonsonW Oct 3, 2025
0334547
Merge pull request #205 from BonsonW/rocm
hasindu2008 Oct 3, 2025
9985e24
more targets
hasindu2008 Oct 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ ifdef cuda
CUDA_LDFLAGS = -L$(CUDA_LIB) -lcudart_static -lrt -ldl
OBJ += $(BUILD_DIR)/gpucode.o $(CUDA_OBJ)
CPPFLAGS += -DHAVE_CUDA=1
else ifdef rocm
ROCM_ROOT ?= /opt/rocm
ROCM_LIB ?= $(ROCM_ROOT)/lib
ROCM_OBJ += $(BUILD_DIR)/f5c_rocm.o $(BUILD_DIR)/f5c_rocm_gpuonly.o $(BUILD_DIR)/align_rocm.o
HIPCC ?= $(ROCM_ROOT)/bin/hipcc
ROCM_CFLAGS += -g -Wall $(ROCM_ARCH)
CUDA_LDFLAGS = -L$(ROCM_LIB) -lamdhip64 -lrt -ldl
OBJ += $(BUILD_DIR)/gpurocmcode.a
CPPFLAGS += -DHAVE_CUDA=1
endif

ifdef asan
Expand Down Expand Up @@ -128,6 +137,19 @@ $(BUILD_DIR)/f5c_cuda_gpuonly.o: src/f5c_gpuonly.cu src/error.h src/f5c.h src/fa
$(BUILD_DIR)/align_cuda.o: src/align.cu src/f5c.h src/fast5lite.h src/f5cmisc.cuh
$(NVCC) -x cu $(CUDA_CFLAGS) $(CPPFLAGS) -rdc=true -c $< -o $@

# rocm stuff
$(BUILD_DIR)/gpurocmcode.a: $(ROCM_OBJ)
$(HIPCC) $(ROCM_CFLAGS) --emit-static-lib -fPIC -fgpu-rdc --hip-link $^ -o $@

$(BUILD_DIR)/f5c_rocm.o: src/f5c.hip src/error.h src/f5c.h src/fast5lite.h src/f5cmisc_rocm.h src/f5cmisc.h
$(HIPCC) -x hip $(ROCM_CFLAGS) $(CPPFLAGS) -fgpu-rdc -fPIC -c $< -o $@

$(BUILD_DIR)/f5c_rocm_gpuonly.o: src/f5c_gpuonly.hip src/error.h src/f5c.h src/fast5lite.h src/f5cmisc_rocm.h src/f5cmisc.h
$(HIPCC) -x hip $(ROCM_CFLAGS) $(CPPFLAGS) -fgpu-rdc -fPIC -c $< -o $@

$(BUILD_DIR)/align_rocm.o: src/align.hip src/f5c.h src/fast5lite.h src/f5cmisc_rocm.h
$(HIPCC) -x hip $(ROCM_CFLAGS) $(CPPFLAGS) -fgpu-rdc -fPIC -c $< -o $@

slow5lib/lib/libslow5.a:
$(MAKE) -C slow5lib zstd=$(zstd) no_simd=$(no_simd) zstd_local=$(zstd_local) lib/libslow5.a

Expand Down
Loading
Loading