Skip to content
This repository was archived by the owner on Apr 24, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
16 changes: 13 additions & 3 deletions libethash-cl/kernels/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ ASFLAGS=-I$(SDIR)
AS=clrxasm

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

.PHONY: clean
clean:
rm -f $(BUILD)/*.o $(BUILD)/*.bin

%.bin:
$(eval ARCH:=$(shell echo "$*" | sed -n 's/\(^[A-Za-z0-9]*\).*/\1/p'))
$(eval ARCH:=$(shell echo "$*" | sed -n 's/\(^[A-Za-z0-9:+-]*\).*/\1/p'))
$(eval LWS:=$(shell echo "$*" | sed -n 's/.*lws\([0-9]\+\)/\1/p'))
$(AS) $(SDIR)/GCN_ethash.isa -g $(ARCH) -DFAST_EXIT -Dworksize=$(LWS) $(ASFLAGS) -o $(BUILD)/ethash_$(ARCH)_lws$(LWS)_exit.bin
$(AS) $(SDIR)/GCN_ethash.isa -g $(ARCH) -Dworksize=$(LWS) $(ASFLAGS) -o $(BUILD)/ethash_$(ARCH)_lws$(LWS).bin
Expand Down Expand Up @@ -41,3 +41,13 @@ gfx901: gfx901_lws64.bin gfx901_lws128.bin gfx901_lws256.bin
.PHONY: gfx906
gfx906: gfx906_lws64.bin gfx906_lws128.bin gfx906_lws256.bin
@echo "Built gfx906 kernels..."


.PHONY: gfx908
gfx906: gfx908_lws64.bin gfx908_lws128.bin gfx908_lws256.bin
@echo "Built gfx908 kernels..."

.PHONY: gfx908:sramecc+:xnack-
gfx908:sramecc+:xnack-: gfx908:sramecc+:xnack-_lws64.bin gfx908:sramecc+:xnack-_lws128.bin gfx908:sramecc+:xnack-_lws256.bin
@echo "Built gfx908:sramecc+:xnack- kernels..."

8 changes: 8 additions & 0 deletions libethash-cl/kernels/isa/GCN_ethash.isa
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
.driver_version 2906007
.include "GCN_ethash_globaldata.isa"
.include "GCN5_ethash_search.isa"
.elseifgpu gfx908
.driver_version 2906007
.include "GCN_ethash_globaldata.isa"
.include "GCN5_ethash_search.isa"
.elseifgpu gfx908:sramecc+:xnack-
.driver_version 2906007
.include "GCN_ethash_globaldata.isa"
.include "GCN5_ethash_search.isa"
.else
.error "Unsupported GPU!"
.endif