# error: a host function call cannot be configured

**URL:** <https://forums.developer.nvidia.com/t/error-a-host-function-call-cannot-be-configured/50697>\
**Category:** CUDA Programming and Performance\
**Created:** [June 11, 2017, 11:20am UTC](https://forums.developer.nvidia.com/t/error-a-host-function-call-cannot-be-configured/50697 "2017-06-11T11:20:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![EdDantes](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@EdDantes](https://forums.developer.nvidia.com/u/EdDantes)\
**Post date:** [June 11, 2017, 11:20am UTC](https://forums.developer.nvidia.com/t/error-a-host-function-call-cannot-be-configured/50697/1 "2017-06-11T11:20:50Z")

</div>

Hello,

I write a cu file for solving least squares with the following structure:

**global**  
void d\_getLS(int cL, int cT, int cI, float \*d\_sData, float \*d\_uData, float \*d\_Mat)  
{  
…

}

/\*\*

- Runs the algorithm.  
\*/  
void OPS::run() {   
cudacall(cudaMemcpy(d\_sData, h\_sData, pow(cL,2) \* nI \* sizeof(float), cudaMemcpyHostToDevice));  
cudacall(cudaMemcpy(d\_uData, h\_uData, pow(cL,2) \* nI \* sizeof(float), cudaMemcpyHostToDevice));  
cudacall(cudaMalloc(&d\_Mat, nIt \* cT \* sizeof(float \*)));

and obtain the following error (at the position d\_getLS) when compiling:  
error: a host function call cannot be configured

1 error detected in the compilation of “/tmp/tmpxft\_000024e2\_00000000-7\_bBBb.cpp1.ii”.

I hope I have been sufficiently clear to make the problem understandable.
