-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
buildbuild issues; typically submitted using templatebuild issues; typically submitted using templateep:CUDAissues related to the CUDA execution providerissues related to the CUDA execution provider
Description
Describe the issue
These errors occur with latest main branch. I am running Fedora 37.
Urgency
Unusable without a fix.
Target platform
Fedora 37
Build script
cmake -Donnxruntime_BUILD_SHARED_LIB=ON -DBUILD_TESTING=OFF -Donnxruntime_BUILD_UNIT_TESTS=OFF -Donnxruntime_USE_CUDA=ON -Donnxruntime_CUDA_HOME=/usr/local/cuda -Donnxruntime_CUDNN_HOME=/usr/local/cuda /home/src/onnxruntime/cmake
Error / output
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(80): error: more than one operator "+" matches these operands:
function "operator+(const __half &, const __half &)" (declared at line 606 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator+(const half &, const half &)" (declared at line 23)
operand types are: const __half + const __half
r.x = lh.x + rh.x;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(81): error: more than one operator "+" matches these operands:
function "operator+(const __half &, const __half &)" (declared at line 606 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator+(const half &, const half &)" (declared at line 23)
operand types are: const __half + const __half
r.y = lh.y + rh.y;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(87): error: more than one operator "-" matches these operands:
function "operator-(const __half &, const __half &)" (declared at line 612 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator-(const half &, const half &)" (declared at line 24)
operand types are: const __half - const __half
r.x = lh.x - rh.x;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(88): error: more than one operator "-" matches these operands:
function "operator-(const __half &, const __half &)" (declared at line 612 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator-(const half &, const half &)" (declared at line 24)
operand types are: const __half - const __half
r.y = lh.y - rh.y;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(94): error: more than one operator "*" matches these operands:
function "operator*(const __half &, const __half &)" (declared at line 618 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator*(const half &, const half &)" (declared at line 25)
operand types are: const __half * const __half
r.x = lh.x * rh.x;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(95): error: more than one operator "*" matches these operands:
function "operator*(const __half &, const __half &)" (declared at line 618 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator*(const half &, const half &)" (declared at line 25)
operand types are: const __half * const __half
r.y = lh.y * rh.y;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(101): error: more than one operator "/" matches these operands:
function "operator/(const __half &, const __half &)" (declared at line 624 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator/(const half &, const half &)" (declared at line 26)
operand types are: const __half / const __half
r.x = lh.x / rh.x;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(102): error: more than one operator "/" matches these operands:
function "operator/(const __half &, const __half &)" (declared at line 624 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator/(const half &, const half &)" (declared at line 26)
operand types are: const __half / const __half
r.y = lh.y / rh.y;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(390): error: more than one operator "*" matches these operands:
function "operator*(const __half &, const __half &)" (declared at line 618 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator*(const half &, const half &)" (declared at line 25)
operand types are: half * const half
return a * kHalf * (kOne + _Erf(kAlpha * a));
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(390): error: more than one operator "*" matches these operands:
function "operator*(const __half &, const __half &)" (declared at line 618 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator*(const half &, const half &)" (declared at line 25)
operand types are: const half * half
return a * kHalf * (kOne + _Erf(kAlpha * a));
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu(15): error: more than one operator ">" matches these operands:
function "operator>(const __half &, const __half &)" (declared at line 720 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator>(const half &, const half &)" (declared at line 72 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh)
operand types are: const half > half
return a > (T)0 ? a : (T)alpha * (_Exp(a) - (T)1);
^
detected during:
instantiation of "T onnxruntime::cuda::OP_Elu<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Elu<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Elu<half>]" at line 119
instantiation of "void onnxruntime::cuda::Impl_Elu(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxElu *, size_t) [with T=half]" at line 119
/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu(15): error: more than one operator "-" matches these operands:
function "operator-(const __half &, const __half &)" (declared at line 612 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator-(const half &, const half &)" (declared at line 24 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh)
operand types are: half - half
return a > (T)0 ? a : (T)alpha * (_Exp(a) - (T)1);
^
detected during:
instantiation of "T onnxruntime::cuda::OP_Elu<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Elu<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Elu<half>]" at line 119
instantiation of "void onnxruntime::cuda::Impl_Elu(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxElu *, size_t) [with T=half]" at line 119
/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu(15): error: ambiguous "?" operation: second operand of type "const half" can be converted to third operand type "<error-type>", and vice versa
return a > (T)0 ? a : (T)alpha * (_Exp(a) - (T)1);
^
detected during:
instantiation of "T onnxruntime::cuda::OP_Elu<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Elu<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Elu<half>]" at line 119
instantiation of "void onnxruntime::cuda::Impl_Elu(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxElu *, size_t) [with T=half]" at line 119
/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu(22): error: more than one operator "*" matches these operands:
function "operator*(const __half &, const __half &)" (declared at line 618 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator*(const half &, const half &)" (declared at line 25 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh)
operand types are: half * const half
return _Max(_Min((T)alpha * a + (T)beta, (T)1), (T)0);
^
detected during:
instantiation of "T onnxruntime::cuda::OP_HardSigmoid<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_HardSigmoid<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_HardSigmoid<half>]" at line 119
instantiation of "void onnxruntime::cuda::Impl_HardSigmoid(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxHardSigmoid *, size_t) [with T=half]" at line 119
/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu(22): error: no instance of function template "onnxruntime::cuda::_Min" matches the argument list
argument types are: (<error-type>, half)
return _Max(_Min((T)alpha * a + (T)beta, (T)1), (T)0);
^
detected during:
instantiation of "T onnxruntime::cuda::OP_HardSigmoid<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_HardSigmoid<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_HardSigmoid<half>]" at line 119
instantiation of "void onnxruntime::cuda::Impl_HardSigmoid(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxHardSigmoid *, size_t) [with T=half]" at line 119
/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu(22): error: no instance of function template "onnxruntime::cuda::_Max" matches the argument list
argument types are: (<error-type>, half)
return _Max(_Min((T)alpha * a + (T)beta, (T)1), (T)0);
^
detected during:
instantiation of "T onnxruntime::cuda::OP_HardSigmoid<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_HardSigmoid<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_HardSigmoid<half>]" at line 119
instantiation of "void onnxruntime::cuda::Impl_HardSigmoid(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxHardSigmoid *, size_t) [with T=half]" at line 119
/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu(29): error: more than one operator ">" matches these operands:
function "operator>(const __half &, const __half &)" (declared at line 720 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator>(const half &, const half &)" (declared at line 72 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh)
operand types are: const half > half
return a > (T)0 ? a : (T)alpha * a;
^
detected during:
instantiation of "T onnxruntime::cuda::OP_LeakyRelu<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_LeakyRelu<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_LeakyRelu<half>]" at line 119
instantiation of "void onnxruntime::cuda::Impl_LeakyRelu(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxLeakyRelu *, size_t) [with T=half]" at line 119
/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu(29): error: more than one operator "*" matches these operands:
function "operator*(const __half &, const __half &)" (declared at line 618 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator*(const half &, const half &)" (declared at line 25 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh)
operand types are: half * const half
return a > (T)0 ? a : (T)alpha * a;
^
detected during:
instantiation of "T onnxruntime::cuda::OP_LeakyRelu<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_LeakyRelu<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_LeakyRelu<half>]" at line 119
instantiation of "void onnxruntime::cuda::Impl_LeakyRelu(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxLeakyRelu *, size_t) [with T=half]" at line 119
/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu(29): error: ambiguous "?" operation: second operand of type "const half" can be converted to third operand type "<error-type>", and vice versa
return a > (T)0 ? a : (T)alpha * a;
^
detected during:
instantiation of "T onnxruntime::cuda::OP_LeakyRelu<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_LeakyRelu<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_LeakyRelu<half>]" at line 119
instantiation of "void onnxruntime::cuda::Impl_LeakyRelu(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxLeakyRelu *, size_t) [with T=half]" at line 119
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(348): error: more than one operator ">" matches these operands:
function "operator>(const __half &, const __half &)" (declared at line 720 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator>(const half &, const half &)" (declared at line 72)
operand types are: half > half
__attribute__((device)) __inline__ T _Max(T a, T b) { return a > b ? a : b; }
^
detected during:
instantiation of "T onnxruntime::cuda::_Max(T, T) [with T=half]" at line 36 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu
instantiation of "T onnxruntime::cuda::OP_Relu<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Relu<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Relu<half>]" at line 119 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu
instantiation of "void onnxruntime::cuda::Impl_Relu(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxRelu *, size_t) [with T=half]" at line 119 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu
/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu(43): error: more than one operator ">" matches these operands:
function "operator>(const __half &, const __half &)" (declared at line 720 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator>(const half &, const half &)" (declared at line 72 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh)
operand types are: const half > half
return a > (T)0 ? (T)gamma * a : (T)gamma * (T)alpha * (_Exp(a) - (T)1);
^
detected during:
instantiation of "T onnxruntime::cuda::OP_Selu<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Selu<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Selu<half>]" at line 119
instantiation of "void onnxruntime::cuda::Impl_Selu(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxSelu *, size_t) [with T=half]" at line 119
/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu(43): error: more than one operator "*" matches these operands:
function "operator*(const __half &, const __half &)" (declared at line 618 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator*(const half &, const half &)" (declared at line 25 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh)
operand types are: half * const half
return a > (T)0 ? (T)gamma * a : (T)gamma * (T)alpha * (_Exp(a) - (T)1);
^
detected during:
instantiation of "T onnxruntime::cuda::OP_Selu<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Selu<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Selu<half>]" at line 119
instantiation of "void onnxruntime::cuda::Impl_Selu(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxSelu *, size_t) [with T=half]" at line 119
/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu(43): error: more than one operator "*" matches these operands:
function "operator*(const __half &, const __half &)" (declared at line 618 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator*(const half &, const half &)" (declared at line 25 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh)
operand types are: half * half
return a > (T)0 ? (T)gamma * a : (T)gamma * (T)alpha * (_Exp(a) - (T)1);
^
detected during:
instantiation of "T onnxruntime::cuda::OP_Selu<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Selu<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Selu<half>]" at line 119
instantiation of "void onnxruntime::cuda::Impl_Selu(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxSelu *, size_t) [with T=half]" at line 119
/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu(43): error: more than one operator "-" matches these operands:
function "operator-(const __half &, const __half &)" (declared at line 612 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator-(const half &, const half &)" (declared at line 24 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh)
operand types are: half - half
return a > (T)0 ? (T)gamma * a : (T)gamma * (T)alpha * (_Exp(a) - (T)1);
^
detected during:
instantiation of "T onnxruntime::cuda::OP_Selu<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Selu<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Selu<half>]" at line 119
instantiation of "void onnxruntime::cuda::Impl_Selu(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxSelu *, size_t) [with T=half]" at line 119
/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu(68): error: more than one operator ">" matches these operands:
function "operator>(const __half &, const __half &)" (declared at line 720 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator>(const half &, const half &)" (declared at line 72 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh)
operand types are: const half > half
if (a > (T)0)
^
detected during:
instantiation of "T onnxruntime::cuda::OP_Softplus<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Softplus<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Softplus<half>]" at line 119
instantiation of "void onnxruntime::cuda::Impl_Softplus(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxSoftplus *, size_t) [with T=half]" at line 119
/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu(69): error: more than one operator "-" matches these operands:
function "operator-(const __half &)" (declared at line 700 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator-(const half &)" (declared at line 67 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh)
operand types are: - const half
return a + _Log(_Exp(-a) + (T)1);
^
detected during:
instantiation of "T onnxruntime::cuda::OP_Softplus<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Softplus<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Softplus<half>]" at line 119
instantiation of "void onnxruntime::cuda::Impl_Softplus(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxSoftplus *, size_t) [with T=half]" at line 119
/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu(71): error: more than one operator "+" matches these operands:
function "operator+(const __half &, const __half &)" (declared at line 606 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator+(const half &, const half &)" (declared at line 23 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh)
operand types are: half + half
return _Log(_Exp(a) + (T)1);
^
detected during:
instantiation of "T onnxruntime::cuda::OP_Softplus<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Softplus<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Softplus<half>]" at line 119
instantiation of "void onnxruntime::cuda::Impl_Softplus(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxSoftplus *, size_t) [with T=half]" at line 119
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(351): error: more than one operator ">" matches these operands:
function "operator>(const __half &, const __half &)" (declared at line 720 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator>(const half &, const half &)" (declared at line 72)
operand types are: half > half
__attribute__((device)) __inline__ T _Abs(T a) { return a > (T)0 ? a : -a; }
^
detected during:
instantiation of "T onnxruntime::cuda::_Abs(T) [with T=half]" at line 78 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu
instantiation of "T onnxruntime::cuda::OP_Softsign<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Softsign<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Softsign<half>]" at line 119 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu
instantiation of "void onnxruntime::cuda::Impl_Softsign(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxSoftsign *, size_t) [with T=half]" at line 119 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(351): error: more than one operator "-" matches these operands:
function "operator-(const __half &)" (declared at line 700 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator-(const half &)" (declared at line 67)
operand types are: - half
__attribute__((device)) __inline__ T _Abs(T a) { return a > (T)0 ? a : -a; }
^
detected during:
instantiation of "T onnxruntime::cuda::_Abs(T) [with T=half]" at line 78 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu
instantiation of "T onnxruntime::cuda::OP_Softsign<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Softsign<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Softsign<half>]" at line 119 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu
instantiation of "void onnxruntime::cuda::Impl_Softsign(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxSoftsign *, size_t) [with T=half]" at line 119 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(351): error: ambiguous "?" operation: second operand of type "half" can be converted to third operand type "<error-type>", and vice versa
__attribute__((device)) __inline__ T _Abs(T a) { return a > (T)0 ? a : -a; }
^
detected during:
instantiation of "T onnxruntime::cuda::_Abs(T) [with T=half]" at line 78 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu
instantiation of "T onnxruntime::cuda::OP_Softsign<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Softsign<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Softsign<half>]" at line 119 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu
instantiation of "void onnxruntime::cuda::Impl_Softsign(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxSoftsign *, size_t) [with T=half]" at line 119 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu
/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu(78): error: more than one operator "+" matches these operands:
function "operator+(const __half &, const __half &)" (declared at line 606 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator+(const half &, const half &)" (declared at line 23 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh)
operand types are: half + half
return a / ((T)1. + _Abs(a));
^
detected during:
instantiation of "T onnxruntime::cuda::OP_Softsign<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Softsign<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_Softsign<half>]" at line 119
instantiation of "void onnxruntime::cuda::Impl_Softsign(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxSoftsign *, size_t) [with T=half]" at line 119
/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu(92): error: more than one operator ">" matches these operands:
function "operator>(const __half &, const __half &)" (declared at line 720 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator>(const half &, const half &)" (declared at line 72 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh)
operand types are: const half > half
return a > (T)alpha ? a : (T)0;
^
detected during:
instantiation of "T onnxruntime::cuda::OP_ThresholdedRelu<T>::operator()(const T &) const [with T=half]" at line 34 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::_UnaryElementWise<InT,OutT,FuncT,NumThreadsPerBlock,NumElementsPerThread>(const InT *, OutT *, FuncT, int32_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_ThresholdedRelu<half>, NumThreadsPerBlock=256, NumElementsPerThread=4]" at line 57 of /home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/unary_elementwise_impl.cuh
instantiation of "void onnxruntime::cuda::UnaryElementWiseImpl(cudaStream_t, const InT *, OutT *, const FuncT &, size_t) [with InT=half, OutT=half, FuncT=onnxruntime::cuda::OP_ThresholdedRelu<half>]" at line 119
instantiation of "void onnxruntime::cuda::Impl_ThresholdedRelu(cudaStream_t, const T *, T *, const onnxruntime::cuda::CtxThresholdedRelu *, size_t) [with T=half]" at line 119
32 errors detected in the compilation of "/home//src/onnxruntime/onnxruntime/core/providers/cuda/activation/activations_impl.cu".
[ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/home//src/onnxruntime/onnxruntime/core/optimizer/gemm_transpose_fusion.cc.o
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(80): error: more than one operator "+" matches these operands:
function "operator+(const __half &, const __half &)" (declared at line 606 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator+(const half &, const half &)" (declared at line 23)
operand types are: const __half + const __half
r.x = lh.x + rh.x;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(81): error: more than one operator "+" matches these operands:
function "operator+(const __half &, const __half &)" (declared at line 606 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator+(const half &, const half &)" (declared at line 23)
operand types are: const __half + const __half
r.y = lh.y + rh.y;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(87): error: more than one operator "-" matches these operands:
function "operator-(const __half &, const __half &)" (declared at line 612 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator-(const half &, const half &)" (declared at line 24)
operand types are: const __half - const __half
r.x = lh.x - rh.x;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(88): error: more than one operator "-" matches these operands:
function "operator-(const __half &, const __half &)" (declared at line 612 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator-(const half &, const half &)" (declared at line 24)
operand types are: const __half - const __half
r.y = lh.y - rh.y;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(94): error: more than one operator "*" matches these operands:
function "operator*(const __half &, const __half &)" (declared at line 618 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator*(const half &, const half &)" (declared at line 25)
operand types are: const __half * const __half
r.x = lh.x * rh.x;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(95): error: more than one operator "*" matches these operands:
function "operator*(const __half &, const __half &)" (declared at line 618 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator*(const half &, const half &)" (declared at line 25)
operand types are: const __half * const __half
r.y = lh.y * rh.y;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(101): error: more than one operator "/" matches these operands:
function "operator/(const __half &, const __half &)" (declared at line 624 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator/(const half &, const half &)" (declared at line 26)
operand types are: const __half / const __half
r.x = lh.x / rh.x;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(102): error: more than one operator "/" matches these operands:
function "operator/(const __half &, const __half &)" (declared at line 624 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator/(const half &, const half &)" (declared at line 26)
operand types are: const __half / const __half
r.y = lh.y / rh.y;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(390): error: more than one operator "*" matches these operands:
function "operator*(const __half &, const __half &)" (declared at line 618 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator*(const half &, const half &)" (declared at line 25)
operand types are: half * const half
return a * kHalf * (kOne + _Erf(kAlpha * a));
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(390): error: more than one operator "*" matches these operands:
function "operator*(const __half &, const __half &)" (declared at line 618 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator*(const half &, const half &)" (declared at line 25)
operand types are: const half * half
return a * kHalf * (kOne + _Erf(kAlpha * a));
^
10 errors detected in the compilation of "/home//src/onnxruntime/onnxruntime/core/providers/cuda/cuda_utils.cu".
make[2]: *** [CMakeFiles/onnxruntime_providers_cuda_obj.dir/build.make:1352: CMakeFiles/onnxruntime_providers_cuda_obj.dir/home//src/onnxruntime/onnxruntime/core/providers/cuda/cuda_utils.cu.o] Error 255
make[2]: *** Waiting for unfinished jobs....
[ 58%] Building CXX object CMakeFiles/onnxruntime_optimizer.dir/home//src/onnxruntime/onnxruntime/core/optimizer/graph_transformer.cc.o
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(80): error: more than one operator "+" matches these operands:
function "operator+(const __half &, const __half &)" (declared at line 606 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator+(const half &, const half &)" (declared at line 23)
operand types are: const __half + const __half
r.x = lh.x + rh.x;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(81): error: more than one operator "+" matches these operands:
function "operator+(const __half &, const __half &)" (declared at line 606 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator+(const half &, const half &)" (declared at line 23)
operand types are: const __half + const __half
r.y = lh.y + rh.y;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(87): error: more than one operator "-" matches these operands:
function "operator-(const __half &, const __half &)" (declared at line 612 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator-(const half &, const half &)" (declared at line 24)
operand types are: const __half - const __half
r.x = lh.x - rh.x;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(88): error: more than one operator "-" matches these operands:
function "operator-(const __half &, const __half &)" (declared at line 612 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator-(const half &, const half &)" (declared at line 24)
operand types are: const __half - const __half
r.y = lh.y - rh.y;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(94): error: more than one operator "*" matches these operands:
function "operator*(const __half &, const __half &)" (declared at line 618 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator*(const half &, const half &)" (declared at line 25)
operand types are: const __half * const __half
r.x = lh.x * rh.x;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(95): error: more than one operator "*" matches these operands:
function "operator*(const __half &, const __half &)" (declared at line 618 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator*(const half &, const half &)" (declared at line 25)
operand types are: const __half * const __half
r.y = lh.y * rh.y;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(101): error: more than one operator "/" matches these operands:
function "operator/(const __half &, const __half &)" (declared at line 624 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator/(const half &, const half &)" (declared at line 26)
operand types are: const __half / const __half
r.x = lh.x / rh.x;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(102): error: more than one operator "/" matches these operands:
function "operator/(const __half &, const __half &)" (declared at line 624 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator/(const half &, const half &)" (declared at line 26)
operand types are: const __half / const __half
r.y = lh.y / rh.y;
^
/home//src/onnxruntime/onnxruntime/core/providers/cuda/cu_inc/common.cuh(390): error: more than one operator "*" matches these operands:
function "operator*(const __half &, const __half &)" (declared at line 618 of /usr/local/cuda/include/cuda_fp16.hpp)
function "onnxruntime::cuda::operator*(const half &, const half &)" (declared at line 25)
operand types are: half * const half
return a * kHalf * (kOne + _Erf(kAlpha * a));
^
Visual Studio Version
No response
GCC / Compiler Version
12
Metadata
Metadata
Assignees
Labels
buildbuild issues; typically submitted using templatebuild issues; typically submitted using templateep:CUDAissues related to the CUDA execution providerissues related to the CUDA execution provider