helloadhavan/github_issues huggingface dataset:
Repository: ggml-org/llama.cpp
Pull request: vulkan: Add env var to disable host visible vidmem

This can be a workaround for the bugcheck 0x10e discussed in #10528.

Changed files:
filename: ggml/src/ggml-vulkan/ggml-vulkan.cpp
patch: @@ -534,6 +534,7 @@ struct vk_device_struct {
     ggml_backend_buffer_type buffer_type;
 
     bool disable_fusion;
+    bool disable_host_visible_vidmem;
 
 #ifdef GGML_VULKAN_MEMORY_DEBUG
     std::unique_ptr<vk_memory_logger> memory_logger;
@@ -1804,6 +1805,8 @@ static vk_buffer ggml_vk_create_buffer_device(vk_device& device, size_t size) {
         } else if (device->uma) {
             // Fall back to host memory type
             buf = ggml_vk_create_buffer(device, size, vk::MemoryPropertyFlagBits::eDeviceLocal, vk::MemoryPropertyFlagBits::eHostVisible | vk::MemoryPropertyFlagBits::eHostCoherent);
+        } else if (device->disable_host_visible_vidmem) {
+            buf = ggml_vk_create_buffer(device, size, vk::MemoryPropertyFlagBits::eDeviceLocal, vk::MemoryPropertyFlagBits::eDeviceLocal);
         } else {
             // use rebar if available, otherwise fallback to device only visible memory
             buf = ggml_vk_create_buffer(device, size, vk::MemoryPropertyFlagBits::eDeviceLocal | vk::MemoryPropertyFlagBits::eHostVisible | vk::MemoryPropertyFlagBits::eHostCoherent, vk::MemoryPropertyFlagBits::eDeviceLocal);
@@ -3265,6 +3268,9 @@ static vk_device ggml_vk_get_device(size_t idx) {
         const char* GGML_VK_PREFER_HOST_MEMORY = getenv("GGML_VK_PREFER_HOST_MEMORY");
         device->prefer_host_memory = GGML_VK_PREFER_HOST_MEMORY != nullptr;
 
+        const char* GGML_VK_DISABLE_HOST_VISIBLE_VIDMEM = getenv("GGML_VK_DISABLE_HOST_VISIBLE_VIDMEM");
+        device->disable_host_visible_vidmem = GGML_VK_DISABLE_HOST_VISIBLE_VIDMEM != nullptr;
+
         bool fp16_storage = false;
         bool fp16_compute = false;
         bool maintenance4_support = false;
Repository: vercel/next.js
Pull request: Update Turbopack development test manifest

This auto-generated PR updates the development integration test manifest used when testing Turbopack.

Changed files:
filename: test/turbopack-dev-tests-manifest.json
patch: @@ -1,16 +1,4 @@
 {
-  "test/e2e/app-dir/nx-handling/nx-handling.test.ts": {
-    "passed": [],
-    "failed": [
-      "nx-handling should work for pages page",
-      "nx-handling should work for pages API",
-      "nx-handling should work with app page",
-      "nx-handling should work with app route"
-    ],
-    "pending": [],
-    "flakey": [],
-    "runtimeError": false
-  },
   "packages/font/src/google/find-font-files-in-css.test.ts": {
     "passed": [
       "findFontFilesInCss should find all font files and preload requested subsets",
@@ -6948,6 +6936,7 @@
   },
   "test/e2e/app-dir/metadata-streaming/metadata-streaming-customized-rule.test.ts": {
     "passed": [
+      "app-dir - metadata-streaming-customized-rule should not have schema issue",
       "app-dir - metadata-streaming-customized-rule should send streaming response for headless browser bots",
       "app-dir - metadata-streaming-customized-rule should send the blocking response for html limited bots"
     ],
@@ -7693,6 +7682,18 @@
     "flakey": [],
     "runtimeError": false
   },
+  "test/e2e/app-dir/nx-handling/nx-handling.test.ts": {
+    "passed": [
+      "nx-handling should work for pages API",
+      "nx-handling should work for pages page",
+      "nx-handling should work with app page",
+      "nx-handling should work with app route"
+    ],
+    "failed": [],
+    "pending": [],
+    "flakey": [],
+    "runtimeError": false
+  },
   "test/e2e/app-dir/pages-to-app-routing/pages-to-app-routing.test.ts": {
     "passed": ["pages-to-app-routing should work using browser"],
     "failed": [],
Repository: ggml-org/llama.cpp
Pull request: HIP: Add option to export kernel resource useage metrics

This adds a convenience option GGML_HIP_EXPORT_METRICS that `-Rpass-analysis=kernel-resource-usage --save-temps` to the hip compilers flags.

This causes the hip compiler to save the assembly of the compiled kernels and output resource usage to stdout:
```
fattn-vec-f32.cuh:34:1: remark: Function Name: _ZL22flash_attn_vec_ext_f32ILi128ELi8EL9ggml_type1ELS0_1ELb1EEvPKcS2_S2_S2_PKiPfP15HIP_vector_typeIfLj2EEffffjfiiiiiiiiiiiiiliiliiiiil [-Rpass-analysis=kernel-resource-usage]
   34 |                             const int32_t nb31, const int32_t nb32, const int64_t nb33) {
      | ^
fattn-vec-f32.cuh:34:1: remark:     SGPRs: 92 [-Rpass-analysis=kernel-resource-usage]
fattn-vec-f32.cuh:34:1: remark:     VGPRs: 63 [-Rpass-analysis=kernel-resource-usage]
fattn-vec-f32.cuh:34:1: remark:     AGPRs: 64 [-Rpass-analysis=kernel-resource-usage]
fattn-vec-f32.cuh:34:1: remark:     ScratchSize [bytes/lane]: 12 [-Rpass-analysis=kernel-resource-usage]
fattn-vec-f32.cuh:34:1: remark:     Dynamic Stack: False [-Rpass-analysis=kernel-resource-usage]
fattn-vec-f32.cuh:34:1: remark:     Occupancy [waves/SIMD]: 4 [-Rpass-analysis=kernel-resource-usage]
fattn-vec-f32.cuh:34:1: remark:     SGPRs Spill: 0 [-Rpass-analysis=kernel-resource-usage]
fattn-vec-f32.cuh:34:1: remark:     VGPRs Spill: 14 [-Rpass-analysis=kernel-resource-usage]
fattn-vec-f32.cuh:34:1: remark:     LDS Size [bytes/block]: 10240 [-Rpass-analysis=kernel-resource-usage]
```

While the same information can also be just as well be gathered by rocprof, and these flags can just as well be added by setting them directly when invoking cmake (which is what i do atm) i would find the inclusion of the above option convenient.

Changed files:
filename: ggml/CMakeLists.txt
patch: @@ -176,6 +176,7 @@ option(GGML_HIP_NO_VMM                      "ggml: do not try to use HIP VMM"
 option(GGML_HIP_ROCWMMA_FATTN               "ggml: enable rocWMMA for FlashAttention"         OFF)
 option(GGML_HIP_FORCE_ROCWMMA_FATTN_GFX12   "ggml: enable rocWMMA FlashAttention on GFX12"    OFF)
 option(GGML_HIP_MMQ_MFMA                    "ggml: enable MFMA MMA for CDNA in MMQ"           ON)
+option(GGML_HIP_EXPORT_METRICS              "ggml: enable kernel perf metrics output"         OFF)
 option(GGML_MUSA_GRAPHS                     "ggml: use MUSA graph, experimental, unstable"    OFF)
 option(GGML_MUSA_MUDNN_COPY                 "ggml: enable muDNN for accelerated copy"         OFF)
 option(GGML_VULKAN                          "ggml: use Vulkan"                                OFF)

filename: ggml/src/ggml-hip/CMakeLists.txt
patch: @@ -121,6 +121,10 @@ if (GGML_HIP_FORCE_ROCWMMA_FATTN_GFX12 OR ${hip_VERSION} VERSION_GREATER_EQUAL 7
     add_compile_definitions(GGML_HIP_ROCWMMA_FATTN_GFX12)
 endif()
 
+if (GGML_HIP_EXPORT_METRICS)
+    set(CMAKE_HIP_FLAGS "${CMAKE_HIP_FLAGS} -Rpass-analysis=kernel-resource-usage --save-temps")
+endif()
+
 if (NOT GGML_CUDA_FA)
     add_compile_definitions(GGML_CUDA_NO_FA)
 endif()
Repository: denoland/deno
Pull request: fix(ext/os): pass SignalState to web worker

Closes https://github.com/denoland/deno/issues/27717

Made a mistake in https://github.com/denoland/deno/pull/27655 and
didn't add the `SignalStore` for web worker.

Changed files:
filename: ext/os/lib.rs
patch: @@ -116,6 +116,12 @@ deno_core::extension!(
     "op_exit" | "op_set_exit_code" | "op_get_exit_code" =>
       op.with_implementation_from(&deno_core::op_void_sync()),
     _ => op,
+  },
+  state = |state| {
+    #[cfg(unix)]
+    {
+      state.put(ops::signal::SignalState::default());
+    }
   }
 );