From 0effd817ae87610a850270e010b195eed6c40fd9 Mon Sep 17 00:00:00 2001 From: unexploredtest Date: Wed, 7 Apr 2021 09:09:22 +0430 Subject: [PATCH 1/4] Updating Vulkan Kompute's version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 48dafe5a..6e72d94f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -![GitHub](https://img.shields.io/badge/Version-0.5.2-green.svg) +![GitHub](https://img.shields.io/badge/Version-0.7.0-green.svg) ![GitHub](https://img.shields.io/badge/C++-14—20-purple.svg) ![GitHub](https://img.shields.io/badge/Build-cmake-red.svg) ![GitHub](https://img.shields.io/badge/Python-3.5—3.8-blue.svg) From e578e596dc55d55b2e75885e329a597c848e62f0 Mon Sep 17 00:00:00 2001 From: unexploredtest Date: Wed, 7 Apr 2021 09:09:52 +0430 Subject: [PATCH 2/4] kp works on python 3.9 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6e72d94f..30680a63 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![GitHub](https://img.shields.io/badge/Version-0.7.0-green.svg) ![GitHub](https://img.shields.io/badge/C++-14—20-purple.svg) ![GitHub](https://img.shields.io/badge/Build-cmake-red.svg) -![GitHub](https://img.shields.io/badge/Python-3.5—3.8-blue.svg) +![GitHub](https://img.shields.io/badge/Python-3.5—3.9-blue.svg) ![GitHub](https://img.shields.io/badge/License-Apache-black.svg) From 6b129d43cff8352db0d229d2ff92647d65c95902 Mon Sep 17 00:00:00 2001 From: unexploredtest Date: Wed, 7 Apr 2021 09:37:27 +0430 Subject: [PATCH 3/4] Fixed C++ example's syntax error --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 30680a63..85ce9e49 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ void kompute(const std::string& shader) { ->eval(); // Evaluates only last recorded operation // 5. Sync results from the GPU asynchronously - sq = mgr.sequence() + auto sq = mgr.sequence(); sq->evalAsync(params); // ... Do other work asynchronously whilst GPU finishes @@ -96,9 +96,9 @@ void kompute(const std::string& shader) { sq->evalAwait(); // Prints the first output which is: { 4, 8, 12 } - for (const float& elem : tensorOutA->data()) std::cout << elem << " "; + for (const float& elem : tensorOutA->vector()) std::cout << elem << " "; // Prints the second output which is: { 10, 10, 10 } - for (const float& elem : tensorOutB->data()) std::cout << elem << " "; + for (const float& elem : tensorOutB->vector()) std::cout << elem << " "; } // Manages / releases all CPU and GPU memory resources From 50d9ba4a4ac76bc142335c59e4511a6fcda258a1 Mon Sep 17 00:00:00 2001 From: unexploredtest <53617231+unexploredtest@users.noreply.github.com> Date: Fri, 9 Apr 2021 19:49:51 +0430 Subject: [PATCH 4/4] compile_source to compileSource kp::Shader::compile_source function has changed to kp::Shader::compileSource --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 85ce9e49..1170d33a 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ void kompute(const std::string& shader) { kp::Constants pushConstsB({ 3.0 }); auto algorithm = mgr.algorithm(params, - kp::Shader::compile_source(shader), + kp::Shader::compileSource(shader), workgroup, specConsts, pushConstsA);