Unverified Commit 12a223ef authored by Gregory Shtrasberg's avatar Gregory Shtrasberg Committed by GitHub
Browse files

[AMD][CI/Build][Bugfix] Guarding CUDA specific functions by ifndef ROCM (#21766)


Signed-off-by: default avatarGregory Shtrasberg <Gregory.Shtrasberg@amd.com>
parent e18f0851
#include <ATen/cuda/CUDAContext.h>
#include <torch/all.h>
#include "../per_token_group_quant_8bit.h"
#ifndef USE_ROCM
#include "../per_token_group_quant_8bit.h"
#endif
#include <cmath>
......@@ -339,6 +341,7 @@ void dynamic_scaled_int8_quant(
});
}
#ifndef USE_ROCM
void per_token_group_quant_int8(const torch::Tensor& input,
torch::Tensor& output_q,
torch::Tensor& output_s, int64_t group_size,
......@@ -346,3 +349,4 @@ void per_token_group_quant_int8(const torch::Tensor& input,
per_token_group_quant_8bit(input, output_q, output_s, group_size, eps,
int8_min, int8_max);
}
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment