| 154 | #endif // _MSC_VER |
| 155 | |
| 156 | H( |
| 157 | std::string DeviceName = CL->GetDeviceName(); |
| 158 | |
| 159 | if (DeviceName.length() > BufferLength - 1) |
| 160 | return CL_OUT_OF_RESOURCES; |
| 161 | |
| 162 | DeviceName.copy(Name, BufferLength, 0); |
| 163 | Name[DeviceName.length()] = '\0'; |
| 164 | ) |
| 165 | } |
| 166 | |
| 167 | ocipError ocip_API ocipFinish() |
| 168 | { |
| 169 | COpenCL * CL = g_CurrentContext; |
| 170 | |
| 171 | if (CL == nullptr) |
| 172 | return CL_INVALID_CONTEXT; |
| 173 | |
| 174 | H( CL->GetQueue().finish() ); |
| 175 | } |
| 176 | |
| 177 | |
| 178 | ocipError ocip_API ocipCreateImage(ocipImage * ImagePtr, SImage image, void * ImageData, cl_mem_flags flags) |
no test coverage detected