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

[SYCL][PI][OpenCL] The case of PI_DEVICE_INFO_ATOMIC_64 #6210

Closed
zjin-lcf opened this issue May 27, 2022 · 1 comment
Closed

[SYCL][PI][OpenCL] The case of PI_DEVICE_INFO_ATOMIC_64 #6210

zjin-lcf opened this issue May 27, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@zjin-lcf
Copy link
Contributor

zjin-lcf commented May 27, 2022

Does the case need to include double-precision floating-point check (FP64) in the OpenCL plugin interface ?

case PI_DEVICE_INFO_ATOMIC_64: {
   size_t extSize;
   cl_bool result = clGetDeviceInfo(
       cast<cl_device_id>(device), CL_DEVICE_EXTENSIONS, 0, nullptr, &extSize);
   std::string extStr(extSize, '\0');
   result = clGetDeviceInfo(cast<cl_device_id>(device), CL_DEVICE_EXTENSIONS,
                            extSize, &extStr.front(), nullptr);
   if (extStr.find("cl_khr_int64_base_atomics") == std::string::npos ||
       extStr.find("cl_khr_int64_extended_atomics") == std::string::npos)
     result = false;
   else
     result = true;
   std::memcpy(paramValue, &result, sizeof(cl_bool));
   return PI_SUCCESS;
 }
@zjin-lcf zjin-lcf added the enhancement New feature or request label May 27, 2022
@zjin-lcf zjin-lcf changed the title The case of PI_DEVICE_INFO_ATOMIC_64 [SYCL][PI][OpenCL] The case of PI_DEVICE_INFO_ATOMIC_64 May 30, 2022
@zjin-lcf
Copy link
Contributor Author

#6434

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

No branches or pull requests

1 participant