Exemplo n.º 1
0
        public Context()
        {
            var contextSettings = new ContextSettings {
            };

            contextSettings.version     = Constants.kVersion;
            contextSettings.logCallback = LogMessage;
            contextSettings.simdLevel   = SIMDLevel.AVX2;

            var status = API.iplContextCreate(ref contextSettings, out mContext);

            if (status != Error.Success)
            {
                throw new Exception(string.Format("Unable to create context. [{0}]", status));
            }
        }