Skip to content

Commit

Permalink
Revert "reorg"
Browse files Browse the repository at this point in the history
This reverts commit 03624d0.
  • Loading branch information
Aaryan0404 committed Nov 13, 2024
1 parent 03624d0 commit 418f931
Show file tree
Hide file tree
Showing 21 changed files with 763 additions and 480 deletions.
176 changes: 0 additions & 176 deletions kernels/attn/4090_harness.impl

This file was deleted.

32 changes: 0 additions & 32 deletions kernels/attn/Makefile

This file was deleted.

92 changes: 0 additions & 92 deletions kernels/attn/a100.cu

This file was deleted.

File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions kernels/attn/demo/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Compiler
NVCC=nvcc
GPU=4090

# Conditional setup based on the target GPU
ifeq ($(GPU),4090)
NVCCFLAGS=-DNDEBUG -Xcompiler=-fPIE --expt-extended-lambda --expt-relaxed-constexpr -Xcompiler=-Wno-psabi -Xcompiler=-fno-strict-aliasing --use_fast_math -I../../../include -forward-unknown-to-host-compiler -O3 -Xnvlink=--verbose -Xptxas=--verbose -Xptxas=--warn-on-spills -std=c++20 -MD -MT -MF -x cu -lrt -lpthread -ldl -DKITTENS_4090 -arch=sm_89 -lcuda -lcudadevrt -lcudart_static -lcublas
TARGET=attn_fwd
SRC=4090.cu
else
NVCCFLAGS=-DNDEBUG -Xcompiler=-fPIE --expt-extended-lambda --expt-relaxed-constexpr -Xcompiler=-Wno-psabi -Xcompiler=-fno-strict-aliasing --use_fast_math -I../../../include -forward-unknown-to-host-compiler -O3 -Xnvlink=--verbose -Xptxas=--verbose -Xptxas=--warn-on-spills -std=c++20 -MD -MT -MF -x cu -lrt -lpthread -ldl -DKITTENS_HOPPER -arch=sm_90a -lcuda -lcudadevrt -lcudart_static -lcublas
TARGET=attn_fwd
SRC=h100_lcf.cu
endif

# Default target
all: $(TARGET)

$(TARGET): $(SRC)
$(NVCC) $(SRC) $(NVCCFLAGS) -o $(TARGET)

# Clean target
clean:
rm -f $(TARGET)
File renamed without changes.
Loading

0 comments on commit 418f931

Please sign in to comment.