Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid multiple redefinition #1817

Merged
merged 13 commits into from
Dec 14, 2023
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