#include "ckernel_audio_conv_checked.h"#include "checked_float_buffer.h"#include "audio_conv1d_checked_internal.h"#include <limits.h>#include <math.h>#include <stdint.h>#include <string.h>Go to the source code of this file.
Macros | |
| #define | CK_AUDIO_CONV1D_COMPUTE_BODY |
| #define | CK_AUDIO_CONV_X86_TARGET_FMA 0 |
Functions | |
| int | audio_conv1d_checked_avx2_fma_available (void) |
| int | audio_conv1d_checked_channel_major_f32 (const float *input, size_t input_elements, size_t input_stride, const float *weight, size_t weight_elements, const float *bias, size_t bias_elements, float *output, size_t output_elements, size_t output_stride, float *scratch, size_t scratch_elements, size_t input_channels, size_t output_channels, size_t input_frames, size_t kernel_size, size_t stride, size_t padding, size_t output_frames) |
| int | audio_conv1d_checked_channel_major_f32_avx2_fma (const float *input, size_t input_elements, size_t input_stride, const float *weight, size_t weight_elements, const float *bias, size_t bias_elements, float *output, size_t output_elements, size_t output_stride, float *scratch, size_t scratch_elements, size_t input_channels, size_t output_channels, size_t input_frames, size_t kernel_size, size_t stride, size_t padding, size_t output_frames) |
| int | audio_conv1d_checked_channel_major_f32_hwfma (const float *input, size_t input_elements, size_t input_stride, const float *weight, size_t weight_elements, const float *bias, size_t bias_elements, float *output, size_t output_elements, size_t output_stride, float *scratch, size_t scratch_elements, size_t input_channels, size_t output_channels, size_t input_frames, size_t kernel_size, size_t stride, size_t padding, size_t output_frames) |
| int | audio_conv1d_checked_hardware_fma_available (void) |
| int | audio_conv1d_checked_workspace (size_t input_channels, size_t output_channels, size_t input_frames, size_t output_frames, size_t *scratch_elements) |
| static void | audio_conv1d_compute_scalar (const ck_audio_conv1d_job *job, void *unused) |
| int | audio_conv1d_dilated_checked_channel_major_f32 (const float *input, size_t input_elements, size_t input_stride, const float *weight, size_t weight_elements, const float *bias, size_t bias_elements, float *output, size_t output_elements, size_t output_stride, float *scratch, size_t scratch_elements, size_t input_channels, size_t output_channels, size_t input_frames, size_t kernel_size, size_t stride, size_t padding, size_t dilation, size_t output_frames) |
| int | audio_conv1d_dilated_checked_channel_major_f32_avx2_fma (const float *input, size_t input_elements, size_t input_stride, const float *weight, size_t weight_elements, const float *bias, size_t bias_elements, float *output, size_t output_elements, size_t output_stride, float *scratch, size_t scratch_elements, size_t input_channels, size_t output_channels, size_t input_frames, size_t kernel_size, size_t stride, size_t padding, size_t dilation, size_t output_frames) |
| int | audio_conv1d_dilated_checked_channel_major_f32_hwfma (const float *input, size_t input_elements, size_t input_stride, const float *weight, size_t weight_elements, const float *bias, size_t bias_elements, float *output, size_t output_elements, size_t output_stride, float *scratch, size_t scratch_elements, size_t input_channels, size_t output_channels, size_t input_frames, size_t kernel_size, size_t stride, size_t padding, size_t dilation, size_t output_frames) |
| int | ck_audio_conv1d_checked_execute (const float *input, size_t input_elements, size_t input_stride, const float *weight, size_t weight_elements, const float *bias, size_t bias_elements, float *output, size_t output_elements, size_t output_stride, float *scratch, size_t scratch_elements, size_t input_channels, size_t output_channels, size_t input_frames, size_t kernel_size, size_t stride, size_t padding, size_t dilation, size_t output_frames, ck_audio_conv1d_compute_fn compute, void *compute_context) |
| #define CK_AUDIO_CONV1D_COMPUTE_BODY |
Definition at line 24 of file audio_conv1d_checked.c.
| #define CK_AUDIO_CONV_X86_TARGET_FMA 0 |
Definition at line 19 of file audio_conv1d_checked.c.
| int audio_conv1d_checked_avx2_fma_available | ( | void | ) |
Definition at line 118 of file audio_conv1d_checked.c.
Referenced by audio_conv1d_checked_channel_major_f32_avx2_fma(), audio_conv1d_dilated_checked_channel_major_f32_avx2_fma(), and audio_conv1d_parallel_checked_impl().
| int audio_conv1d_checked_channel_major_f32 | ( | const float * | input, |
| size_t | input_elements, | ||
| size_t | input_stride, | ||
| const float * | weight, | ||
| size_t | weight_elements, | ||
| const float * | bias, | ||
| size_t | bias_elements, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | output_stride, | ||
| float * | scratch, | ||
| size_t | scratch_elements, | ||
| size_t | input_channels, | ||
| size_t | output_channels, | ||
| size_t | input_frames, | ||
| size_t | kernel_size, | ||
| size_t | stride, | ||
| size_t | padding, | ||
| size_t | output_frames | ||
| ) |
Definition at line 219 of file audio_conv1d_checked.c.
References audio_conv1d_compute_scalar(), and ck_audio_conv1d_checked_execute().
| int audio_conv1d_checked_channel_major_f32_avx2_fma | ( | const float * | input, |
| size_t | input_elements, | ||
| size_t | input_stride, | ||
| const float * | weight, | ||
| size_t | weight_elements, | ||
| const float * | bias, | ||
| size_t | bias_elements, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | output_stride, | ||
| float * | scratch, | ||
| size_t | scratch_elements, | ||
| size_t | input_channels, | ||
| size_t | output_channels, | ||
| size_t | input_frames, | ||
| size_t | kernel_size, | ||
| size_t | stride, | ||
| size_t | padding, | ||
| size_t | output_frames | ||
| ) |
Definition at line 305 of file audio_conv1d_checked.c.
References audio_conv1d_checked_avx2_fma_available(), audio_conv1d_compute_avx2(), ck_audio_conv1d_checked_execute(), and CK_AUDIO_CONV_CHECKED_UNSUPPORTED.
| int audio_conv1d_checked_channel_major_f32_hwfma | ( | const float * | input, |
| size_t | input_elements, | ||
| size_t | input_stride, | ||
| const float * | weight, | ||
| size_t | weight_elements, | ||
| const float * | bias, | ||
| size_t | bias_elements, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | output_stride, | ||
| float * | scratch, | ||
| size_t | scratch_elements, | ||
| size_t | input_channels, | ||
| size_t | output_channels, | ||
| size_t | input_frames, | ||
| size_t | kernel_size, | ||
| size_t | stride, | ||
| size_t | padding, | ||
| size_t | output_frames | ||
| ) |
Definition at line 250 of file audio_conv1d_checked.c.
References audio_conv1d_checked_hardware_fma_available(), ck_audio_conv1d_checked_execute(), and CK_AUDIO_CONV_CHECKED_UNSUPPORTED.
| int audio_conv1d_checked_hardware_fma_available | ( | void | ) |
Definition at line 109 of file audio_conv1d_checked.c.
Referenced by audio_conv1d_checked_channel_major_f32_hwfma(), and audio_conv1d_dilated_checked_channel_major_f32_hwfma().
| int audio_conv1d_checked_workspace | ( | size_t | input_channels, |
| size_t | output_channels, | ||
| size_t | input_frames, | ||
| size_t | output_frames, | ||
| size_t * | scratch_elements | ||
| ) |
Definition at line 127 of file audio_conv1d_checked.c.
References CK_AUDIO_CONV_CHECKED_OK, and CK_AUDIO_CONV_CHECKED_OVERFLOW.
Referenced by ck_audio_conv1d_checked_execute().
|
static |
Definition at line 43 of file audio_conv1d_checked.c.
References CK_AUDIO_CONV1D_COMPUTE_BODY.
Referenced by audio_conv1d_checked_channel_major_f32(), and audio_conv1d_dilated_checked_channel_major_f32().
| int audio_conv1d_dilated_checked_channel_major_f32 | ( | const float * | input, |
| size_t | input_elements, | ||
| size_t | input_stride, | ||
| const float * | weight, | ||
| size_t | weight_elements, | ||
| const float * | bias, | ||
| size_t | bias_elements, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | output_stride, | ||
| float * | scratch, | ||
| size_t | scratch_elements, | ||
| size_t | input_channels, | ||
| size_t | output_channels, | ||
| size_t | input_frames, | ||
| size_t | kernel_size, | ||
| size_t | stride, | ||
| size_t | padding, | ||
| size_t | dilation, | ||
| size_t | output_frames | ||
| ) |
Definition at line 234 of file audio_conv1d_checked.c.
References audio_conv1d_compute_scalar(), and ck_audio_conv1d_checked_execute().
| int audio_conv1d_dilated_checked_channel_major_f32_avx2_fma | ( | const float * | input, |
| size_t | input_elements, | ||
| size_t | input_stride, | ||
| const float * | weight, | ||
| size_t | weight_elements, | ||
| const float * | bias, | ||
| size_t | bias_elements, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | output_stride, | ||
| float * | scratch, | ||
| size_t | scratch_elements, | ||
| size_t | input_channels, | ||
| size_t | output_channels, | ||
| size_t | input_frames, | ||
| size_t | kernel_size, | ||
| size_t | stride, | ||
| size_t | padding, | ||
| size_t | dilation, | ||
| size_t | output_frames | ||
| ) |
Definition at line 332 of file audio_conv1d_checked.c.
References audio_conv1d_checked_avx2_fma_available(), audio_conv1d_compute_avx2(), ck_audio_conv1d_checked_execute(), and CK_AUDIO_CONV_CHECKED_UNSUPPORTED.
| int audio_conv1d_dilated_checked_channel_major_f32_hwfma | ( | const float * | input, |
| size_t | input_elements, | ||
| size_t | input_stride, | ||
| const float * | weight, | ||
| size_t | weight_elements, | ||
| const float * | bias, | ||
| size_t | bias_elements, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | output_stride, | ||
| float * | scratch, | ||
| size_t | scratch_elements, | ||
| size_t | input_channels, | ||
| size_t | output_channels, | ||
| size_t | input_frames, | ||
| size_t | kernel_size, | ||
| size_t | stride, | ||
| size_t | padding, | ||
| size_t | dilation, | ||
| size_t | output_frames | ||
| ) |
Definition at line 277 of file audio_conv1d_checked.c.
References audio_conv1d_checked_hardware_fma_available(), ck_audio_conv1d_checked_execute(), and CK_AUDIO_CONV_CHECKED_UNSUPPORTED.
| int ck_audio_conv1d_checked_execute | ( | const float * | input, |
| size_t | input_elements, | ||
| size_t | input_stride, | ||
| const float * | weight, | ||
| size_t | weight_elements, | ||
| const float * | bias, | ||
| size_t | bias_elements, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | output_stride, | ||
| float * | scratch, | ||
| size_t | scratch_elements, | ||
| size_t | input_channels, | ||
| size_t | output_channels, | ||
| size_t | input_frames, | ||
| size_t | kernel_size, | ||
| size_t | stride, | ||
| size_t | padding, | ||
| size_t | dilation, | ||
| size_t | output_frames, | ||
| ck_audio_conv1d_compute_fn | compute, | ||
| void * | compute_context | ||
| ) |
Definition at line 142 of file audio_conv1d_checked.c.
References audio_conv1d_checked_workspace(), CK_AUDIO_CONV_CHECKED_CAPACITY, CK_AUDIO_CONV_CHECKED_INVALID, CK_AUDIO_CONV_CHECKED_NONFINITE, CK_AUDIO_CONV_CHECKED_OK, CK_AUDIO_CONV_CHECKED_OVERFLOW, ck_checked_finite(), ck_checked_overlap(), ck_checked_region(), and ck_checked_span().
Referenced by audio_conv1d_checked_channel_major_f32(), audio_conv1d_checked_channel_major_f32_avx2_fma(), audio_conv1d_checked_channel_major_f32_hwfma(), audio_conv1d_dilated_checked_channel_major_f32(), audio_conv1d_dilated_checked_channel_major_f32_avx2_fma(), audio_conv1d_dilated_checked_channel_major_f32_hwfma(), and audio_conv1d_parallel_checked_impl().