Skip to content

Commit

Permalink
chore(sycl): add softmax forward, all kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
mspronesti committed Aug 1, 2024
1 parent 1bebd09 commit 9967fc0
Show file tree
Hide file tree
Showing 2 changed files with 564 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dev/sycl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,16 @@ ifeq ($(HIP),yes)
CFLAGS += -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend --offload-arch=$(HIP_ARCH)
endif

TARGETS = adamw attention_backward attention_forward classifier_fused crossentropy_forward crossentropy_softmax_backward encoder_backward encoder_forward gelu_backward gelu_forward global_norm layernorm_backward layernorm_forward matmul_backward matmul_backward_bias matmul_forward residual_forward trimat_forward fused_residual_forward
TARGETS = $(patsubst %.cpp,%,$(wildcard *.cpp))

all: $(TARGETS)

matmul_forward: matmul_forward.cpp
$(CC) $(CFLAGS) $< -ldnnl -o $@

softmax_forward: softmax_forward.cpp
$(CC) $(CFLAGS) $< -fp-model=precise -o $@

trimat_forward: trimat_forward.cpp
$(CC) $(CFLAGS) $< -ldnnl -o $@

Expand Down
Loading

0 comments on commit 9967fc0

Please sign in to comment.