tinygrad icon indicating copy to clipboard operation
tinygrad copied to clipboard

error: call to 'sqrt' is ambiguous

Open salihmarangoz opened this issue 2 years ago • 3 comments

I was just testing YOLOv8 with OpenCL using a webcam:

GPU=1 DEBUG=4 python3 examples/yolov8.py webcam n

However, I got OpenCL compile error like this:

<kernel>:103:25: error: call to 'sqrt' is ambiguous
  float cast0 = (float)(sqrt(((half)(1.0f)/(val2.x+(half)(0.001f)))));

Always casting before sqrt may be a solution but not sure.

salihmarangoz avatar Mar 14 '24 05:03 salihmarangoz

I am having the exact same issue with an unmodified yolov8.py example file on a fresh tinygrad install from the main branch.

AlyShmahell avatar Jun 29 '24 14:06 AlyShmahell

what hardware are you running on?

wozeparrot avatar Jul 11 '24 01:07 wozeparrot

what hardware are you running on?

5900hx + 3080m 16gb + ubuntu 20.04

salihmarangoz avatar Jul 11 '24 01:07 salihmarangoz