Lines Matching refs:device_benchmark

771     *device_benchmark;  in LoadOpenCLDeviceBenchmark()  local
779 device_benchmark=(MagickCLDeviceBenchmark *) NULL; in LoadOpenCLDeviceBenchmark()
814 device_benchmark=(MagickCLDeviceBenchmark *) AcquireQuantumMemory(1, in LoadOpenCLDeviceBenchmark()
815 sizeof(*device_benchmark)); in LoadOpenCLDeviceBenchmark()
816 if (device_benchmark == (MagickCLDeviceBenchmark *) NULL) in LoadOpenCLDeviceBenchmark()
818 (void) memset(device_benchmark,0,sizeof(*device_benchmark)); in LoadOpenCLDeviceBenchmark()
819 device_benchmark->score=MAGICKCORE_OPENCL_UNDEFINED_SCORE; in LoadOpenCLDeviceBenchmark()
822 if (device_benchmark == (MagickCLDeviceBenchmark *) NULL) in LoadOpenCLDeviceBenchmark()
826 if (device_benchmark->score != MAGICKCORE_OPENCL_UNDEFINED_SCORE) in LoadOpenCLDeviceBenchmark()
828 if (LocaleCompare(device_benchmark->name,"CPU") == 0) in LoadOpenCLDeviceBenchmark()
829 clEnv->cpu_score=device_benchmark->score; in LoadOpenCLDeviceBenchmark()
841 if (IsBenchmarkedOpenCLDevice(device,device_benchmark)) in LoadOpenCLDeviceBenchmark()
842 device->score=device_benchmark->score; in LoadOpenCLDeviceBenchmark()
847 device_benchmark->platform_name=RelinquishMagickMemory( in LoadOpenCLDeviceBenchmark()
848 device_benchmark->platform_name); in LoadOpenCLDeviceBenchmark()
849 device_benchmark->vendor_name=RelinquishMagickMemory( in LoadOpenCLDeviceBenchmark()
850 device_benchmark->vendor_name); in LoadOpenCLDeviceBenchmark()
851 device_benchmark->name=RelinquishMagickMemory(device_benchmark->name); in LoadOpenCLDeviceBenchmark()
852 device_benchmark->version=RelinquishMagickMemory( in LoadOpenCLDeviceBenchmark()
853 device_benchmark->version); in LoadOpenCLDeviceBenchmark()
854 device_benchmark=(MagickCLDeviceBenchmark *) RelinquishMagickMemory( in LoadOpenCLDeviceBenchmark()
855 device_benchmark); in LoadOpenCLDeviceBenchmark()
870 device_benchmark->max_clock_frequency=StringToInteger(token); in LoadOpenCLDeviceBenchmark()
875 device_benchmark->max_compute_units=StringToInteger(token); in LoadOpenCLDeviceBenchmark()
884 device_benchmark->name=ConstantString(token); in LoadOpenCLDeviceBenchmark()
891 device_benchmark->platform_name=ConstantString(token); in LoadOpenCLDeviceBenchmark()
898 device_benchmark->score=StringToDouble(token,(char **) NULL); in LoadOpenCLDeviceBenchmark()
905 device_benchmark->vendor_name=ConstantString(token); in LoadOpenCLDeviceBenchmark()
907 device_benchmark->version=ConstantString(token); in LoadOpenCLDeviceBenchmark()
915 device_benchmark=(MagickCLDeviceBenchmark *) RelinquishMagickMemory( in LoadOpenCLDeviceBenchmark()
916 device_benchmark); in LoadOpenCLDeviceBenchmark()