Experimental change: now the integration function is automatically optimized during acInit

This commit is contained in:
jpekkila
2019-07-09 14:46:24 +03:00
parent a086821e7c
commit 10a98b01a9
3 changed files with 83 additions and 2 deletions

View File

@@ -55,7 +55,6 @@ extern "C" {
#define REGISTERS_PER_THREAD (255)
#define MAX_REGISTERS_PER_BLOCK (65536)
#define MAX_THREADS_PER_BLOCK (1024)
#define MAX_TB_DIM (MAX_THREADS_PER_BLOCK)
#define NUM_ITERATIONS (10)
#define WARP_SIZE (32)
/*
@@ -275,6 +274,10 @@ AcResult acSynchronize(void);
/** Loads a parameter to the constant memory of all devices */
AcResult acLoadDeviceConstant(const AcRealParam param, const AcReal value);
/** Auto-optimizes the library. This function is free from side-effects: the input vertex buffer is
* guaranteed not be modified.*/
AcResult acAutoOptimize(void);
/* End extern "C" */
#ifdef __cplusplus
}