Lines Matching refs:std
19 void *loadOsLibrary(const std::string &PluginPath) { in loadOsLibrary()
25 …std::cerr << "dlopen(" << PluginPath << ") failed with <" << (Error ? Error : "unknown error") << … in loadOsLibrary()
38 void *getOsLibraryFuncAddress(void *Library, const std::string &FunctionName) { return dlsym(Librar… in getOsLibraryFuncAddress()
40 static std::vector<const char *> prepareOclocArgs(sycl::info::device_type DeviceType, device_arch D… in prepareOclocArgs()
41 … const std::string &DeviceStepping, const std::string &UserArgs) { in prepareOclocArgs()
42 std::vector<const char *> Args = {"ocloc", "-q", "-spv_only", "-device"}; in prepareOclocArgs()
100 static std::vector<byte> compileToSPIRV(const std::string &Source, sycl::info::device_type DeviceTy… in compileToSPIRV()
101 … const std::string &DeviceStepping, void *&CompileToSPIRVHandle, void *&FreeSPIRVOutputsHandle, in compileToSPIRV()
102 const std::vector<std::string> &UserArgs) { in compileToSPIRV()
105 static const std::string OclocLibraryName = "ocloc64.dll"; in compileToSPIRV()
107 static const std::string OclocLibraryName = "libocloc.so"; in compileToSPIRV()
127 …throw online_compile_error(std::string("Found incompatible version of ocloc library: (") + std::to… in compileToSPIRV()
128 …std::to_string(LoadedVersionMinor) + "). The supported versions are (" + std::to_string(CurrentVer… in compileToSPIRV()
129 ".N), where (N >= " + std::to_string(CurrentVersionMinor) + ")."); in compileToSPIRV()
137 std::string CombinedUserArgs; in compileToSPIRV()
143 …std::vector<const char *> Args = prepareOclocArgs(DeviceType, DeviceArch, Is64Bit, DeviceStepping,… in compileToSPIRV()
161 std::vector<byte> SpirV; in compileToSPIRV()
162 std::string CompileLog; in compileToSPIRV()
167 SpirV = std::vector<byte>(Outputs[I], Outputs[I] + OutputLengths[I]); in compileToSPIRV()
169 CompileLog = std::string(reinterpret_cast<const char *>(Outputs[I])); in compileToSPIRV()
186 std::vector<byte> online_compiler<source_language::opencl_c>::compile(const std::string &Source, co… in compile()
187 if (OutputFormatVersion != std::pair<int, int>{0, 0}) { in compile()
188 …std::string Version = std::to_string(OutputFormatVersion.first) + ", " + std::to_string(OutputForm… in compile()
189 …throw online_compile_error(std::string("The output format version (") + Version + ") is not suppor… in compile()
197 std::vector<byte> online_compiler<source_language::cm>::compile(const std::string &Source, const st… in compile()
198 if (OutputFormatVersion != std::pair<int, int>{0, 0}) { in compile()
199 …std::string Version = std::to_string(OutputFormatVersion.first) + ", " + std::to_string(OutputForm… in compile()
200 …throw online_compile_error(std::string("The output format version (") + Version + ") is not suppor… in compile()
203 std::vector<std::string> CMUserArgs = UserArgs; in compile()