----------------------------------------- isLongSupported -----------------------------------------
| 534 | // isLongSupported |
| 535 | //----------------------------------------- |
| 536 | bool isLongSupported(cl_device_id device_id) |
| 537 | { |
| 538 | size_t tempSize = 0; |
| 539 | cl_int status; |
| 540 | bool extSupport = true; |
| 541 | |
| 542 | // Device profile |
| 543 | status = clGetDeviceInfo( |
| 544 | device_id, |
| 545 | CL_DEVICE_PROFILE, |
| 546 | 0, |
| 547 | NULL, |
| 548 | &tempSize); |
| 549 | |
| 550 | if(status != CL_SUCCESS) |
| 551 | { |
| 552 | log_error("*** clGetDeviceInfo FAILED ***\n\n"); |
| 553 | return false; |
| 554 | } |
| 555 | |
| 556 | std::unique_ptr<char[]> profileType(new char[tempSize]); |
| 557 | if(profileType == NULL) |
| 558 | { |
| 559 | log_error("Failed to allocate memory(profileType)"); |
| 560 | return false; |
| 561 | } |
| 562 | |
| 563 | status = clGetDeviceInfo( |
| 564 | device_id, |
| 565 | CL_DEVICE_PROFILE, |
| 566 | sizeof(char) * tempSize, |
| 567 | profileType.get(), |
| 568 | NULL); |
| 569 | |
| 570 | |
| 571 | if(!strcmp("EMBEDDED_PROFILE",profileType.get())) |
| 572 | { |
| 573 | extSupport = is_extension_available(device_id, "cles_khr_int64"); |
| 574 | } |
| 575 | return extSupport; |
| 576 | } |
| 577 | //----------------------------------------- |
| 578 | // is64bAddressSpace |
| 579 | //----------------------------------------- |
no test coverage detected