Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pengwa committed Feb 22, 2024
1 parent 2f3ce10 commit 8d1cbd2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions onnxruntime/contrib_ops/cuda/bert/fast_gelu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
#include "contrib_ops/cpu/bert/bias_gelu_helper.h"
#ifdef USE_ROCM
#include "contrib_ops/rocm/bert/elementwise.h"
#else
#endif
#ifdef USE_CUDA
#include "contrib_ops/cuda/bert/transformer_common.h"
#endif

Expand Down Expand Up @@ -62,7 +63,8 @@ Status FastGelu<T>::ComputeInternal(OpKernelContext* context) const {
reinterpret_cast<const CudaT*>(input->Data<T>()), static_cast<int>(input_length),
(nullptr != bias) ? reinterpret_cast<const CudaT*>(bias->Data<T>()) : nullptr, static_cast<int>(bias_length),
reinterpret_cast<CudaT*>(output->MutableData<T>()));
#else
#endif
#ifdef USE_CUDA
return LaunchFastGeluKernel<CudaT>(GetDeviceProp(),
Stream(context),
static_cast<int>(input_length),
Expand Down

0 comments on commit 8d1cbd2

Please sign in to comment.