Updated compile_shader to compileShader
This commit is contained in:
parent
cc1ec748a7
commit
fa5dc43b44
14 changed files with 28 additions and 28 deletions
|
|
@ -39,7 +39,7 @@ int main()
|
|||
|
||||
std::vector<std::shared_ptr<kp::Tensor>> params = { tensorInA, tensorInB, tensorOut };
|
||||
|
||||
std::shared_ptr<kp::Algorithm> algo = mgr.algorithm(params, kp::Shader::compile_source(shader));
|
||||
std::shared_ptr<kp::Algorithm> algo = mgr.algorithm(params, kp::Shader::compileSource(shader));
|
||||
|
||||
mgr.sequence()
|
||||
->record<kp::OpTensorSyncDevice>(params)
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ void KomputeSummatorNode::_init() {
|
|||
std::shared_ptr<kp::Algorithm> algo =
|
||||
mgr.algorithm(
|
||||
{ this->mPrimaryTensor, this->mSecondaryTensor },
|
||||
kp::Shader::compile_source(shader));
|
||||
kp::Shader::compileSource(shader));
|
||||
|
||||
|
||||
// First we ensure secondary tensor loads to GPU
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ void KomputeSummator::_init() {
|
|||
// Then we run the operation with both tensors
|
||||
this->mSequence->record<kp::OpAlgoCreate>(
|
||||
{ this->mPrimaryTensor, this->mSecondaryTensor },
|
||||
kp::Shader::compile_source(shader));
|
||||
kp::Shader::compileSource(shader));
|
||||
|
||||
// We map the result back to local
|
||||
this->mSequence->record<kp::OpTensorSyncLocal>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue