Skip to content

Commit

Permalink
fix compile error on CUDA 11.6 (#40694)
Browse files Browse the repository at this point in the history
  • Loading branch information
sneaxiy authored Mar 21, 2022
1 parent 4ff9fe4 commit 49f1ab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paddle/phi/kernels/funcs/mode.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#pragma once

#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP)
#if defined(__NVCC__) || defined(__HIPCC__)
#include <thrust/device_vector.h>
#include <thrust/execution_policy.h>
#include <thrust/extrema.h>
Expand Down Expand Up @@ -143,7 +143,7 @@ static void ModeAssign(const Type& input_height,
}
}

#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP)
#if defined(__NVCC__) || defined(__HIPCC__)
template <typename T>
static void GetModebySort(const phi::GPUContext& dev_ctx,
const DenseTensor* input_tensor,
Expand Down

0 comments on commit 49f1ab2

Please sign in to comment.