C函数补充extern “C”

pull/3/head
陈增辉 2024-12-28 01:20:48 +08:00
parent eeb360754c
commit a7d2ed7996
1 changed files with 3 additions and 3 deletions

View File

@ -480,7 +480,7 @@ extern "C" void calculationEcho(float* sigma0, float* TransAnt, float* ReciveAnt
cudaDeviceSynchronize();
}
void CUDACalculationEchoAmp(float* sigma0, float* TransAnt, float* ReciveAnt, float* R, float Pt, float* ampArr, long len)
extern "C" void CUDACalculationEchoAmp(float* sigma0, float* TransAnt, float* ReciveAnt, float* R, float Pt, float* ampArr, long len)
{
int blockSize = 256; // 每个块的线程数
@ -499,7 +499,7 @@ void CUDACalculationEchoAmp(float* sigma0, float* TransAnt, float* ReciveAnt, fl
}
void CUDACalculationEchoPhase(float* R, float lamda, float* phaseArr, long len)
extern "C" void CUDACalculationEchoPhase(float* R, float lamda, float* phaseArr, long len)
{
int blockSize = 256; // 每个块的线程数
int numBlocks = (len + blockSize - 1) / blockSize; // 根据 pixelcount 计算网格大小
@ -518,7 +518,7 @@ void CUDACalculationEchoPhase(float* R, float lamda, float* phaseArr, long len)
}
void CUDACombinationEchoAmpAndPhase(float* R,
extern "C" void CUDACombinationEchoAmpAndPhase(float* R,
float* echoAmp, float* echoPhase,
float nearRange, float Fs, long plusepoints, cuComplex* echo, long* FreqID, long len)
{