Skip to content

Commit 614856d

Browse files
authored
Avoid multiple redefinition (#1817)
1 parent 05bdf4e commit 614856d

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

csrc/cache.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#include <torch/extension.h>
24

35
#include <map>

csrc/cuda_utils.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#include <torch/extension.h>
24

35
int get_device_attribute(

csrc/dispatch_utils.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Adapted from
33
* https://github.com/pytorch/pytorch/blob/v2.0.1/aten/src/ATen/Dispatch.h
44
*/
5+
#pragma once
6+
57
#include <torch/extension.h>
68

79
#define VLLM_DISPATCH_CASE_FLOATING_TYPES(...) \

csrc/ops.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#include <torch/extension.h>
24

35
void paged_attention_v1(

0 commit comments

Comments
 (0)