### Get Number of Dimensions (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Retrieves the number of dimensions (1, 2, or 3) configured for the input data in the MSDGPU plan. ```C++ int get_nDim(); ``` -------------------------------- ### Get Number of Steps (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Retrieves the number of steps (int3) used in the calculation process, likely related to processing dimensions. ```C++ int3 get_nSteps(); ``` -------------------------------- ### Get Total Number of Blocks (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Retrieves the total number of blocks used in the GPU kernel execution for the MSDGPU plan. ```C++ int get_nBlocks_total(); ``` -------------------------------- ### Get Partial Kernel Grid Size (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Retrieves the grid dimensions (dim3) configured for the partial calculation kernel in the MSDGPU plan. ```C++ dim3 get_partial_gridSize(); ``` -------------------------------- ### Get Z Dimension Size (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Retrieves the size of the third dimension (Z) of the input data as configured in the MSDGPU plan. ```C++ size_t get_dim_z(); ``` -------------------------------- ### Get Y Dimension Size (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Retrieves the size of the second dimension (Y) of the input data as configured in the MSDGPU plan. ```C++ size_t get_dim_y(); ``` -------------------------------- ### Get X Dimension Size (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Retrieves the size of the fastest moving dimension (X) of the input data as configured in the MSDGPU plan. ```C++ size_t get_dim_x(); ``` -------------------------------- ### Get Final Kernel Grid Size (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Retrieves the grid dimensions (dim3) configured for the final calculation kernel in the MSDGPU plan. ```C++ dim3 get_final_gridSize(); ``` -------------------------------- ### Get Partial Kernel Block Size (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Retrieves the block dimensions (dim3) configured for the partial calculation kernel in the MSDGPU plan. ```C++ dim3 get_partial_blockSize(); ``` -------------------------------- ### Get Pointer to Partial Element Counts (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Retrieves a pointer to the device memory location storing intermediate element counts from the partial calculation kernel. ```C++ int* get_pointer_partial_nElements(); ``` -------------------------------- ### Get Final Kernel Block Size (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Retrieves the block dimensions (dim3) configured for the final calculation kernel in the MSDGPU plan. ```C++ dim3 get_final_blockSize(); ``` -------------------------------- ### Get Pointer to Partial MSD Data (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Retrieves a pointer to the device memory location storing intermediate mean and standard deviation results from the partial calculation kernel. ```C++ float* get_pointer_partial_MSD(); ``` -------------------------------- ### Get CUDA Stream (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Retrieves the CUDA stream associated with the MSDGPU plan. If no stream was explicitly bound, this will return the default stream. ```C++ cudaStream_t get_CUDA_stream(); ``` -------------------------------- ### Get Calculation Offset (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Retrieves the offset value, which specifies the number of elements to exclude from the end of the fastest moving dimension during calculation. ```C++ int get_offset(); ``` -------------------------------- ### Get Outlier Rejection Sigma Range (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Retrieves the sigma range threshold used for outlier rejection. Elements with an absolute z-value greater than this threshold are excluded. ```C++ float get_OR_sigma_range(); ``` -------------------------------- ### Check MSDGPU Plan Readiness (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Checks if the MSDGPU plan has been successfully created and is ready for execution. Returns true if the plan is ready, false otherwise. ```C++ bool MSD_ready(void); ``` -------------------------------- ### Create MSDGPU Calculation Plan (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Creates the necessary plan and allocates resources for executing the MSDGPU library. Configures data dimensions, offset, outlier rejection settings, and batch processing. ```C++ MSD_Error Create_MSD_Plan(std::vector data_dimensions, int offset, bool enable_outlier_rejection, float OR_sigma_range, int nBatches=1); ``` -------------------------------- ### Execute MSDGPU Calculation (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Executes the MSDGPU library's core functionality to calculate the mean and standard deviation of the input data. The results are stored on the device. Requires a configured MSD_Configuration object. ```C++ MSD_Error MSD_GetMeanStdev(float *d_MSD, size_t *d_MSD_nElements, float *d_input, MSD_Configuration &MSD_conf); ``` -------------------------------- ### Check Outlier Rejection Status (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Checks if outlier rejection is enabled in the current MSDGPU configuration. Returns true if enabled, false otherwise. ```C++ bool MSD_outlier_rejection(void); ``` -------------------------------- ### Destroy MSDGPU Calculation Plan (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Destroys the MSDGPU plan and releases any resources allocated during its creation. It is good practice to call this when the plan is no longer needed. ```C++ MSD_Error Destroy_MSD_Plan(); ``` -------------------------------- ### Display MSDGPU Error Message (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Displays a human-readable error message corresponding to the provided MSD_Error code. Useful for debugging and handling library errors. ```C++ void Get_MSD_Error(MSD_Error error); ``` -------------------------------- ### Bind CUDA Stream to Plan (C++) Source: https://github.com/kadamek/gpu_mean_and_stdev/blob/master/README.md Associates a specific CUDA stream with the MSDGPU plan. All subsequent kernel executions for this plan will occur in the specified stream. If not called, the default stream is used. ```C++ void Bind_cuda_stream(cudaStream_t t_cuda_stream); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.