Skip to content

Commit

Permalink
gpu ci 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mspronesti committed Jul 29, 2024
1 parent 3c169bd commit 41f0b51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci-dev-gpu.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI kernels (CPU)
name: CI kernels (GPU)

on: [push, pull_request]

Expand All @@ -11,14 +11,10 @@ jobs:

- name: Build kernels
run: |
qsub -I -l nodes=1:gpu:ppn=2 -d .
cd dev/sycl
make CC=icx
- name: Run kernels
run: |
qsub -I -l nodes=1:gpu:ppn=2 -d .
cd dev/sycl
make run_all CC=icx
2 changes: 1 addition & 1 deletion dev/sycl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ 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)

Expand Down
2 changes: 2 additions & 0 deletions dev/sycl/adamw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ int main(int argc, char** argv) {

// Allocate device memory
sycl::queue q(sycl::default_selector_v, sycl::property::queue::in_order());
std::cout << "Running on: " << q.get_device().get_info<sycl::info::device::name>() << "\n
float* d_params = sycl::malloc_device<float>(num_parameters, q);
float* d_grads = sycl::malloc_device<float>(num_parameters, q);
float* d_m_memory = sycl::malloc_device<float>(num_parameters, q);
Expand Down

0 comments on commit 41f0b51

Please sign in to comment.