AnsweredAssumed Answered

Missing stddef.h

Question asked by jvdelisle on Nov 9, 2015

I want to interface OpenCL and other AMD libraries with gfortran to take advantage of the GPU.


I have A6, A8, and A10 platforms.  It would be nice if gfortran could recognize and use the capabilities for intrinsic functions like MATMUL as an example.  We currently can use a user provided external BLAS library and I understand that there is a clBLAS available.


However, as I am running Fedora 22, I get a problem:


$ clinfo

Number of platforms                               1

  Platform Name                                   Clover

  Platform Vendor                                 Mesa

  Platform Version                                OpenCL 1.1 MESA 10.6.9

  Platform Profile                                FULL_PROFILE

  Platform Extensions                             cl_khr_icd

  Platform Extensions function suffix             MESA


  Platform Name                                   Clover

Number of devices                                 1

  Device Name                                     AMD MULLINS

  Device Vendor                                   AMD

  Device Vendor ID                                0x1002

  Device Version                                  OpenCL 1.1 MESA 10.6.9

  Driver Version                                  10.6.9

  Device OpenCL C Version                         OpenCL C 1.1

  Device Type                                     GPU

  Device Profile                                  FULL_PROFILE

  Max compute units                               2

  Max clock frequency                             800MHz

  Max work item dimensions                        3

  Max work item sizes                             256x256x256

  Max work group size                             256


In file included from <built-in>:296:

In file included from <command line>:2:

In file included from /usr/include/clc/clc.h:15:

/usr/include/clc/clctypes.h:3:10: fatal error: 'stddef.h' file not found

  Preferred work group size multiple              In file included from <built-in>:296:

In file included from <command line>:2:

In file included from /usr/include/clc/clc.h:15:

/usr/include/clc/clctypes.h:3:10: fatal error: 'stddef.h' file not found


I am seeking help, guidance, suggestions to resolve this issue.  There is a bugzilla report at Redhat on this, but I am not seeing progress on it and I am not even sure who would be the right expert.


Thanks in advance.