Skip to content

Commit 6e724c8

Browse files
authored
gfx 908 support
1 parent d185d54 commit 6e724c8

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

libethash-cl/kernels/Makefile

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ ASFLAGS=-I$(SDIR)
55
AS=clrxasm
66

77
.PHONY: all
8-
all: ellesmere tonga baffin gfx900 gfx901 gfx906
9-
@echo "Built ethash kernel for Ellesmere, Tonga, Baffin, Gfx900 and Gfx901 architectures."
8+
all: ellesmere tonga baffin gfx900 gfx901 gfx906 gfx908 gfx908:sramecc+:xnack-
9+
@echo "Built ethash kernel for Ellesmere, Tonga, Baffin, Gfx900, Gfx901, Gfx906 and Gfx 908 architectures."
1010

1111
.PHONY: clean
1212
clean:
1313
rm -f $(BUILD)/*.o $(BUILD)/*.bin
1414

1515
%.bin:
16-
$(eval ARCH:=$(shell echo "$*" | sed -n 's/\(^[A-Za-z0-9]*\).*/\1/p'))
16+
$(eval ARCH:=$(shell echo "$*" | sed -n 's/\(^[A-Za-z0-9:+-]*\).*/\1/p'))
1717
$(eval LWS:=$(shell echo "$*" | sed -n 's/.*lws\([0-9]\+\)/\1/p'))
1818
$(AS) $(SDIR)/GCN_ethash.isa -g $(ARCH) -DFAST_EXIT -Dworksize=$(LWS) $(ASFLAGS) -o $(BUILD)/ethash_$(ARCH)_lws$(LWS)_exit.bin
1919
$(AS) $(SDIR)/GCN_ethash.isa -g $(ARCH) -Dworksize=$(LWS) $(ASFLAGS) -o $(BUILD)/ethash_$(ARCH)_lws$(LWS).bin
@@ -41,3 +41,13 @@ gfx901: gfx901_lws64.bin gfx901_lws128.bin gfx901_lws256.bin
4141
.PHONY: gfx906
4242
gfx906: gfx906_lws64.bin gfx906_lws128.bin gfx906_lws256.bin
4343
@echo "Built gfx906 kernels..."
44+
45+
46+
.PHONY: gfx908
47+
gfx906: gfx908_lws64.bin gfx908_lws128.bin gfx908_lws256.bin
48+
@echo "Built gfx908 kernels..."
49+
50+
.PHONY: gfx908:sramecc+:xnack-
51+
gfx908:sramecc+:xnack-: gfx908:sramecc+:xnack-_lws64.bin gfx908:sramecc+:xnack-_lws128.bin gfx908:sramecc+:xnack-_lws256.bin
52+
@echo "Built gfx908:sramecc+:xnack- kernels..."
53+

0 commit comments

Comments
 (0)