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" }