You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The source must define a device function named by `function_name` with signature:
329
-
330
-
Return `true` to allow a source vector to appear in the results and `false` to reject it. UDF dereferences it. CAGRA currently provides `source_index_t` as `uint32_t` in the generated JIT fragment.
331
-
332
-
```cpp
333
-
structudf_filter : publicbase_filter {
334
-
std::string source;
335
-
void* filter_data;
336
-
float filtering_rate;
337
-
std::string function_name;
338
-
};
339
-
```
340
-
341
-
**Fields**
342
-
343
-
| Name | Type | Description |
344
-
| --- | --- | --- |
345
-
| `source` | `std::string` | CUDA C++ source containing the device predicate. |
346
-
| `filter_data` | `void*` | Opaque device-accessible pointer passed to the predicate. |
347
-
| `filtering_rate` | `float` | Estimated fraction of rows rejected by the predicate, or negative if unknown. |
348
-
| `function_name` | `std::string` | Device function name to call from the generated CAGRA sample filter. |
0 commit comments