[DRIVER] Improved performance of Host driver code
This commit is contained in:
committed by
Philippe Tillet
parent
8f8d36c7a4
commit
a77c925dfd
@@ -335,8 +335,8 @@ function::caller* function::autotune(driver::stream* stream, const grid_fn_ty& g
|
||||
}
|
||||
|
||||
// set copy host buffer "data" into constant memory buffer "name"
|
||||
void function::set_cst(const std::string& name, void* data, size_t n_bytes) {
|
||||
cst_[name] = std::vector<char>((char*)data, (char*)data + n_bytes);
|
||||
void function::set_cst(const char* name, void* data, size_t n_bytes) {
|
||||
cst_[std::string(name)] = std::vector<char>((char*)data, (char*)data + n_bytes);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user