Skip to content

Commit

Permalink
Merge pull request karpathy#386 from Anerudhan/feature/rename_cudnn_attn
Browse files Browse the repository at this point in the history
Rename cudnn_att.cu to cudnn_att.cpp to speed up compilation.
  • Loading branch information
karpathy authored May 8, 2024
2 parents 68509c8 + 0ce5fcf commit b8eaafd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ train_gpt2: train_gpt2.c
test_gpt2: test_gpt2.c
$(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) $^ $(LDLIBS) $(OUTPUT_FILE)

$(NVCC_CUDNN): cudnn_att.cu
$(NVCC_CUDNN): cudnn_att.cpp
$(NVCC) -c $(NVCC_FLAGS) $(PFLAGS) $^ $(NVCC_INCLUDES)

train_gpt2cu: train_gpt2.cu $(NVCC_CUDNN)
Expand All @@ -256,4 +256,4 @@ profile_gpt2cu: profile_gpt2.cu $(NVCC_CUDNN)
$(NVCC) $(NVCC_FLAGS) $(PFLAGS) -lineinfo $^ $(NVCC_LDFLAGS) $(NVCC_INCLUDES) $(NVCC_LDLIBS) $(CUDA_OUTPUT_FILE)

clean:
$(REMOVE_FILES) $(TARGETS)
$(REMOVE_FILES) $(TARGETS) $(NVCC_CUDNN)
File renamed without changes.

0 comments on commit b8eaafd

Please sign in to comment.