C函数补充extern “C”
parent
eeb360754c
commit
a7d2ed7996
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue