|
发表于 2023-8-24 15:19:22
|
显示全部楼层
Failed inference for CodeFormer: nvrtc: error: invalid value for --gpu-architecture (-arch)
nvrtc compilation failed:
#define NAN __int_as_float(0x7fffffff)
#define POS_INFINITY __int_as_float(0x7f800000)
#define NEG_INFINITY __int_as_float(0xff800000)
template<typename T>
__device__ T maximum(T a, T b) {
return isnan(a) ? a : (a > b ? a : b);
}
template<typename T>
__device__ T minimum(T a, T b) {
return isnan(a) ? a : (a < b ? a : b);
}
extern "C" __global__
void fused_sigmoid_mul(float* tx_1, float* aten_mul) {
{
float tx_1_1 = __ldg(tx_1 + (512 * blockIdx.x + threadIdx.x) % 16777216);
aten_mul[512 * blockIdx.x + threadIdx.x] = tx_1_1 * (1.f / (1.f + (expf(0.f - tx_1_1))));
}
}
出现这个错误是什么原因呢 |
|