Avoid multiple redefinition (#1817)

This commit is contained in:
Mingcan Xiang 2023-12-14 12:35:58 -05:00 committed by GitHub
parent 05bdf4eaf3
commit 614856da25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#pragma once
#include <torch/extension.h>
#include <map>

View File

@ -1,3 +1,5 @@
#pragma once
#include <torch/extension.h>
int get_device_attribute(

View File

@ -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(...) \

View File

@ -1,3 +1,5 @@
#pragma once
#include <torch/extension.h>
void paged_attention_v1(