MCPcopy Create free account
hub / github.com/boostorg/compute / program_binary_path

Function program_binary_path

include/boost/compute/detail/path.hpp:44–55  ·  view source on GitHub ↗

Path to cached binaries.

Source from the content-addressed store, hash-verified

42
43// Path to cached binaries.
44inline std::string program_binary_path(const std::string &hash, bool create = false)
45{
46 std::string dir = detail::appdata_path() + path_delim()
47 + hash.substr(0, 2) + path_delim()
48 + hash.substr(2);
49
50 if(create && !boost::filesystem::exists(dir)){
51 boost::filesystem::create_directories(dir);
52 }
53
54 return dir + path_delim();
55}
56
57// Path to parameter caches.
58inline std::string parameter_cache_path(bool create = false)

Callers 2

save_program_binaryMethod · 0.85
load_program_binaryMethod · 0.85

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected