Updated documentation examples

This commit is contained in:
Alejandro Saucedo 2021-02-21 12:12:16 +00:00
parent 29c50e5728
commit f474d21088
3 changed files with 22 additions and 271 deletions

View file

@ -78,7 +78,7 @@ int main() {
// 3. Run operation with string shader synchronously
mgr.evalOpDefault<kp::OpAlgoBase>(
{ tensorInA, tensorInB, tensorOut },
std::vector<uint32_t>(shaderString.begin(), shaderString.end()));
kp::Shader::compile_source(shaderString));
// 4. Map results back from GPU memory to print the results
mgr.evalOpDefault<kp::OpTensorSyncLocal>({ tensorInA, tensorInB, tensorOut });