Skip to content

Commit

Permalink
Avoid multiple redefinition (vllm-project#1817)
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchellX authored Dec 14, 2023
1 parent 05bdf4e commit 614856d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions csrc/cache.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include <torch/extension.h>

#include <map>
Expand Down
2 changes: 2 additions & 0 deletions csrc/cuda_utils.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include <torch/extension.h>

int get_device_attribute(
Expand Down
2 changes: 2 additions & 0 deletions csrc/dispatch_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* Adapted from
* https://github.com/pytorch/pytorch/blob/v2.0.1/aten/src/ATen/Dispatch.h
*/
#pragma once

#include <torch/extension.h>

#define VLLM_DISPATCH_CASE_FLOATING_TYPES(...) \
Expand Down
2 changes: 2 additions & 0 deletions csrc/ops.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include <torch/extension.h>

void paged_attention_v1(
Expand Down

0 comments on commit 614856d

Please sign in to comment.