- check-cu.py now defaults to clang -x cuda --cuda-host-only with real qualifiers; --plain keeps the C++-only pass. - qsa_prompt_attention_variants.cu: block_q4_0 under pack(1) as in kv_q4.hpp (cu_pin refreshed). - native_head_native.cu: orphan copy had __launch_bounds__ before extern "C" __global__ (never nvcc-built); now the sealed twin's text. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
21 lines
1.1 KiB
C
21 lines
1.1 KiB
C
// Stub of <cuda_fp4.h> (CUDA >= 12.8 FP4 E2M1 types, used by the Blackwell MMA path of ggml-cuda/quantize.cu).
|
|
#pragma once
|
|
#include "cuda_stub.h"
|
|
#if defined(__CUDA__)
|
|
#pragma clang force_cuda_host_device begin
|
|
#endif
|
|
#include "cuda_fp16.h"
|
|
#include "cuda_bf16.h"
|
|
typedef unsigned char __nv_fp4_storage_t;
|
|
typedef unsigned char __nv_fp4x2_storage_t;
|
|
typedef unsigned short __nv_fp4x4_storage_t;
|
|
enum __nv_fp4_interpretation_t { __NV_E2M1 };
|
|
struct __nv_fp4_e2m1 { __nv_fp4_storage_t __x; __nv_fp4_e2m1() = default; __nv_fp4_e2m1(float); operator float() const; };
|
|
struct __nv_fp4x2_e2m1 { __nv_fp4x2_storage_t __x; __nv_fp4x2_e2m1() = default; __nv_fp4x2_e2m1(float2); __nv_fp4x2_e2m1(__half2); operator float2() const; };
|
|
struct __nv_fp4x4_e2m1 { __nv_fp4x4_storage_t __x; __nv_fp4x4_e2m1() = default; __nv_fp4x4_e2m1(float4); __nv_fp4x4_e2m1(float2, float2); __nv_fp4x4_e2m1(__half2, __half2); };
|
|
__half2_raw __nv_cvt_fp4x2_to_halfraw2(__nv_fp4x2_storage_t, __nv_fp4_interpretation_t);
|
|
__nv_fp4x2_storage_t __nv_cvt_float2_to_fp4x2(float2, __nv_fp4_interpretation_t, int);
|
|
#if defined(__CUDA__)
|
|
#pragma clang force_cuda_host_device end
|
|
#endif
|