From 82c24601663fd158d1a6bac360a1854d3f42de7b Mon Sep 17 00:00:00 2001 From: Fabian Sauter Date: Thu, 27 Oct 2022 14:26:26 +0200 Subject: [PATCH] Removed old Android init VK toast Signed-off-by: Fabian Sauter --- .../app/src/main/cpp/KomputeJniNative.cpp | 22 ------------------- .../java/com/ethicalml/kompute/KomputeJni.kt | 11 +--------- 2 files changed, 1 insertion(+), 32 deletions(-) diff --git a/examples/android/android-simple/app/src/main/cpp/KomputeJniNative.cpp b/examples/android/android-simple/app/src/main/cpp/KomputeJniNative.cpp index 2b9e75dca..ecbc70c40 100644 --- a/examples/android/android-simple/app/src/main/cpp/KomputeJniNative.cpp +++ b/examples/android/android-simple/app/src/main/cpp/KomputeJniNative.cpp @@ -50,28 +50,6 @@ vectorToJFloatArray(JNIEnv* env, const std::vector& fromVector) extern "C" { - - JNIEXPORT jboolean JNICALL - Java_com_ethicalml_kompute_KomputeJni_initVulkan(JNIEnv* env, jobject thiz) - { - - KP_LOG_INFO("Initialising vulkan"); - - uint32_t totalRetries = 0; - - /*while (totalRetries < KOMPUTE_VK_INIT_RETRIES) { - KP_LOG_INFO("VULKAN LOAD TRY NUMBER: %u", totalRetries); - if (InitVulkan()) { - break; - } - sleep(1); - totalRetries++; - }*/ - - // return totalRetries < KOMPUTE_VK_INIT_RETRIES; - return true; - } - JNIEXPORT jfloatArray JNICALL Java_com_ethicalml_kompute_KomputeJni_kompute(JNIEnv* env, jobject thiz, diff --git a/examples/android/android-simple/app/src/main/java/com/ethicalml/kompute/KomputeJni.kt b/examples/android/android-simple/app/src/main/java/com/ethicalml/kompute/KomputeJni.kt index b68e197eb..3221cf6d5 100755 --- a/examples/android/android-simple/app/src/main/java/com/ethicalml/kompute/KomputeJni.kt +++ b/examples/android/android-simple/app/src/main/java/com/ethicalml/kompute/KomputeJni.kt @@ -22,16 +22,7 @@ class KomputeJni : AppCompatActivity() { binding.komputeGifView.getSettings().setUseWideViewPort(true) binding.komputeGifView.getSettings().setLoadWithOverviewMode(true) - - val successVulkanInit = initVulkan() - if (successVulkanInit) { - Toast.makeText(applicationContext, "Vulkan Loaded SUCCESS", Toast.LENGTH_SHORT).show() - } else { - binding.KomputeButton.isEnabled = false - Toast.makeText(applicationContext, "Vulkan Load FAILED", Toast.LENGTH_SHORT).show() - } - Log.i("KomputeJni", "Vulkan Result: " + successVulkanInit) - + binding.predictionTextView.text = "N/A" }