Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't use math function "floor" in a kernel #61

Open
ghost opened this issue Jan 27, 2018 · 1 comment
Open

can't use math function "floor" in a kernel #61

ghost opened this issue Jan 27, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 27, 2018

When using the function "floor" from math.h in a kernel, coriander compiles and link the CUDA code fines, but at run time, the linked binary produces the following error:

OpenCL platform: Intel Gen OCL Driver
OpenCL device: Intel(R) HD Graphics Kabylake ULT GT2
llvm.floor.f32 is called, but not defined
This is probalby a bug in Coriander. Please file an issue at https://github.com/hughperkins/coriander/issues/new
basicblockdumper.runGeneration got exception whilst processing:
%16 = tail call float @llvm.floor.f32(float %15) #6

generateOpenCL failed to generate opencl sourcecode
kernel name orig=_Z6kernelPf
kernel name short=_Z6kernelPf
kernel name unique=_Z6kernelPf_1
writing ll to /tmp/failed-kernel.ll
caught runtime error llvm.floor.f32 is called, but not defined => cannot continue. Sorry :-(
terminate called after throwing an instance of 'std::runtime_error'
what(): llvm.floor.f32 is called, but not defined => cannot continue. Sorry :-(
Aborted (core dumped)

Full CUDA code is in attachment.

testCode.zip

@Trass3r
Copy link

Trass3r commented Mar 12, 2020

To be closed then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant