123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- /* StarPU --- Runtime system for heterogeneous multicore architectures.
- *
- * Copyright (C) 2010,2011 University of Bordeaux
- *
- * StarPU is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1 of the License, or (at
- * your option) any later version.
- *
- * StarPU is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * See the GNU Lesser General Public License in COPYING.LGPL for more details.
- */
- #include "socl.h"
- #include "devices.h"
- // OpenCL 1.0 : Mandatory format: major_number.minor_number
- const char * SOCL_DRIVER_VERSION = "0.1";
- const cl_uint SOCL_DEVICE_VENDOR_ID = 666;
- const struct _cl_device_id socl_devices[] = {
- {
- .type = CL_DEVICE_TYPE_CPU,
- .max_compute_units = 1,
- .max_work_item_dimensions = 3,
- .max_work_item_sizes = {1,1,1},
- .max_work_group_size = 1,
- .preferred_vector_widths = {16,8,4,2,4,2},
- .max_clock_frequency = 3000,
- .address_bits = 64,
- .max_mem_alloc_size = 1024*1024*1024,
- .image_support = CL_FALSE,
- .max_parameter_size = 256,
- .mem_base_addr_align = 0,
- .min_data_type_align_size = 0,
- .single_fp_config = CL_FP_ROUND_TO_NEAREST | CL_FP_INF_NAN,
- .global_mem_cache_type = CL_READ_WRITE_CACHE,
- .global_mem_cacheline_size = 128,
- .global_mem_cache_size = 16*1024,
- .global_mem_size = (cl_ulong)4*1024*1024*1024,
- .max_constant_args = 8,
- .local_mem_type = CL_GLOBAL,
- .local_mem_size = 16*1024,
- .error_correction_support = CL_FALSE,
- .profiling_timer_resolution = 100,
- .endian_little = CL_TRUE,
- .available = CL_TRUE,
- .compiler_available = CL_TRUE,
- .execution_capabilities = CL_EXEC_KERNEL,
- .queue_properties = CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE,
- .name = "StarPU virtual CPU 1",
- .extensions = ""
- },
- {
- .type = CL_DEVICE_TYPE_GPU,
- .max_compute_units = 12,
- .max_work_item_dimensions = 3,
- .max_work_item_sizes = {512,512,64},
- .max_work_group_size = 512,
- .preferred_vector_widths = {16,8,4,2,4,2},
- .max_clock_frequency = 1600,
- .address_bits = 32,
- .max_mem_alloc_size = 100*1024*1024,
- .image_support = CL_FALSE,
- .max_parameter_size = 256,
- .mem_base_addr_align = 0,
- .min_data_type_align_size = 0,
- .single_fp_config = CL_FP_ROUND_TO_NEAREST | CL_FP_INF_NAN,
- .global_mem_cache_type = CL_NONE,
- .global_mem_cacheline_size = 0,
- .global_mem_cache_size = 0,
- .global_mem_size = (cl_ulong)500*1024*1024,
- .max_constant_args = 8,
- .local_mem_type = CL_LOCAL,
- .local_mem_size = 16*1024,
- .error_correction_support = CL_FALSE,
- .profiling_timer_resolution = 10,
- .endian_little = CL_TRUE,
- .available = CL_TRUE,
- .compiler_available = CL_TRUE,
- .execution_capabilities = CL_EXEC_KERNEL,
- .queue_properties = CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE,
- .name = "StarPU virtual GPU 1",
- .extensions = ""
- },
- {
- .type = CL_DEVICE_TYPE_GPU,
- .max_compute_units = 12,
- .max_work_item_dimensions = 3,
- .max_work_item_sizes = {512,512,64},
- .max_work_group_size = 512,
- .preferred_vector_widths = {16,8,4,2,4,2},
- .max_clock_frequency = 1600,
- .address_bits = 32,
- .max_mem_alloc_size = 100*1024*1024,
- .image_support = CL_FALSE,
- .max_parameter_size = 256,
- .mem_base_addr_align = 0,
- .min_data_type_align_size = 0,
- .single_fp_config = CL_FP_ROUND_TO_NEAREST | CL_FP_INF_NAN,
- .global_mem_cache_type = CL_NONE,
- .global_mem_cacheline_size = 0,
- .global_mem_cache_size = 0,
- .global_mem_size = (cl_ulong)500*1024*1024,
- .max_constant_args = 8,
- .local_mem_type = CL_LOCAL,
- .local_mem_size = 16*1024,
- .error_correction_support = CL_FALSE,
- .profiling_timer_resolution = 10,
- .endian_little = CL_TRUE,
- .available = CL_TRUE,
- .compiler_available = CL_TRUE,
- .execution_capabilities = CL_EXEC_KERNEL,
- .queue_properties = CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE,
- .name = "StarPU virtual GPU 2",
- .extensions = ""
- },
- {
- .type = CL_DEVICE_TYPE_GPU,
- .max_compute_units = 12,
- .max_work_item_dimensions = 3,
- .max_work_item_sizes = {512,512,64},
- .max_work_group_size = 512,
- .preferred_vector_widths = {16,8,4,2,4,2},
- .max_clock_frequency = 1600,
- .address_bits = 32,
- .max_mem_alloc_size = 100*1024*1024,
- .image_support = CL_FALSE,
- .max_parameter_size = 256,
- .mem_base_addr_align = 0,
- .min_data_type_align_size = 0,
- .single_fp_config = CL_FP_ROUND_TO_NEAREST | CL_FP_INF_NAN,
- .global_mem_cache_type = CL_NONE,
- .global_mem_cacheline_size = 0,
- .global_mem_cache_size = 0,
- .global_mem_size = (cl_ulong)500*1024*1024,
- .max_constant_args = 8,
- .local_mem_type = CL_LOCAL,
- .local_mem_size = 16*1024,
- .error_correction_support = CL_FALSE,
- .profiling_timer_resolution = 10,
- .endian_little = CL_TRUE,
- .available = CL_TRUE,
- .compiler_available = CL_TRUE,
- .execution_capabilities = CL_EXEC_KERNEL,
- .queue_properties = CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE,
- .name = "StarPU virtual GPU 3",
- .extensions = ""
- },
- {
- .type = CL_DEVICE_TYPE_GPU,
- .max_compute_units = 12,
- .max_work_item_dimensions = 3,
- .max_work_item_sizes = {512,512,64},
- .max_work_group_size = 512,
- .preferred_vector_widths = {16,8,4,2,4,2},
- .max_clock_frequency = 1600,
- .address_bits = 32,
- .max_mem_alloc_size = 100*1024*1024,
- .image_support = CL_FALSE,
- .max_parameter_size = 256,
- .mem_base_addr_align = 0,
- .min_data_type_align_size = 0,
- .single_fp_config = CL_FP_ROUND_TO_NEAREST | CL_FP_INF_NAN,
- .global_mem_cache_type = CL_NONE,
- .global_mem_cacheline_size = 0,
- .global_mem_cache_size = 0,
- .global_mem_size = (cl_ulong)500*1024*1024,
- .max_constant_args = 8,
- .local_mem_type = CL_LOCAL,
- .local_mem_size = 16*1024,
- .error_correction_support = CL_FALSE,
- .profiling_timer_resolution = 10,
- .endian_little = CL_TRUE,
- .available = CL_TRUE,
- .compiler_available = CL_TRUE,
- .execution_capabilities = CL_EXEC_KERNEL,
- .queue_properties = CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE,
- .name = "StarPU virtual GPU 4",
- .extensions = ""
- },
- {
- .type = CL_DEVICE_TYPE_GPU,
- .max_compute_units = 12,
- .max_work_item_dimensions = 3,
- .max_work_item_sizes = {512,512,64},
- .max_work_group_size = 512,
- .preferred_vector_widths = {16,8,4,2,4,2},
- .max_clock_frequency = 1600,
- .address_bits = 32,
- .max_mem_alloc_size = 100*1024*1024,
- .image_support = CL_FALSE,
- .max_parameter_size = 256,
- .mem_base_addr_align = 0,
- .min_data_type_align_size = 0,
- .single_fp_config = CL_FP_ROUND_TO_NEAREST | CL_FP_INF_NAN,
- .global_mem_cache_type = CL_NONE,
- .global_mem_cacheline_size = 0,
- .global_mem_cache_size = 0,
- .global_mem_size = (cl_ulong)500*1024*1024,
- .max_constant_args = 8,
- .local_mem_type = CL_LOCAL,
- .local_mem_size = 16*1024,
- .error_correction_support = CL_FALSE,
- .profiling_timer_resolution = 10,
- .endian_little = CL_TRUE,
- .available = CL_TRUE,
- .compiler_available = CL_TRUE,
- .execution_capabilities = CL_EXEC_KERNEL,
- .queue_properties = CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE,
- .name = "StarPU virtual GPU 5",
- .extensions = ""
- },
- {
- .type = CL_DEVICE_TYPE_GPU,
- .max_compute_units = 12,
- .max_work_item_dimensions = 3,
- .max_work_item_sizes = {512,512,64},
- .max_work_group_size = 512,
- .preferred_vector_widths = {16,8,4,2,4,2},
- .max_clock_frequency = 1600,
- .address_bits = 32,
- .max_mem_alloc_size = 100*1024*1024,
- .image_support = CL_FALSE,
- .max_parameter_size = 256,
- .mem_base_addr_align = 0,
- .min_data_type_align_size = 0,
- .single_fp_config = CL_FP_ROUND_TO_NEAREST | CL_FP_INF_NAN,
- .global_mem_cache_type = CL_NONE,
- .global_mem_cacheline_size = 0,
- .global_mem_cache_size = 0,
- .global_mem_size = (cl_ulong)500*1024*1024,
- .max_constant_args = 8,
- .local_mem_type = CL_LOCAL,
- .local_mem_size = 16*1024,
- .error_correction_support = CL_FALSE,
- .profiling_timer_resolution = 10,
- .endian_little = CL_TRUE,
- .available = CL_TRUE,
- .compiler_available = CL_TRUE,
- .execution_capabilities = CL_EXEC_KERNEL,
- .queue_properties = CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE,
- .name = "StarPU virtual GPU 6",
- .extensions = ""
- },
- {
- .type = CL_DEVICE_TYPE_GPU,
- .max_compute_units = 12,
- .max_work_item_dimensions = 3,
- .max_work_item_sizes = {512,512,64},
- .max_work_group_size = 512,
- .preferred_vector_widths = {16,8,4,2,4,2},
- .max_clock_frequency = 1600,
- .address_bits = 32,
- .max_mem_alloc_size = 100*1024*1024,
- .image_support = CL_FALSE,
- .max_parameter_size = 256,
- .mem_base_addr_align = 0,
- .min_data_type_align_size = 0,
- .single_fp_config = CL_FP_ROUND_TO_NEAREST | CL_FP_INF_NAN,
- .global_mem_cache_type = CL_NONE,
- .global_mem_cacheline_size = 0,
- .global_mem_cache_size = 0,
- .global_mem_size = (cl_ulong)500*1024*1024,
- .max_constant_args = 8,
- .local_mem_type = CL_LOCAL,
- .local_mem_size = 16*1024,
- .error_correction_support = CL_FALSE,
- .profiling_timer_resolution = 10,
- .endian_little = CL_TRUE,
- .available = CL_TRUE,
- .compiler_available = CL_TRUE,
- .execution_capabilities = CL_EXEC_KERNEL,
- .queue_properties = CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE,
- .name = "StarPU virtual GPU 7",
- .extensions = ""
- }
- };
- const int socl_device_count = sizeof(socl_devices) / sizeof(struct _cl_device_id);
|