PDA

View Full Version : OpenCL Emulation ?



zak
27-10-2010, 14:17
Hi Petr, all
i have just tried a thinbasic tbgl EXE , and 2 vc_6 opengl EXE on an old desktop computer with an ordinary intel 82845G graphic controller without opengl hardware support, the three programs run okay, only the vc exe complain that it needs glut32.dll, and when i put it in the same folder the vc 6 exe programs run okay. indeed the thinbasic tbgl program run about the 2/3 same speed visually as on my original opengl hardware supported card pc.
now if opengl programs can run on ordinary pc's without hardware support, then why openCL are not so, i have searched about openCL emulation and it seems there is no such thing except there is a program here:
http://www.techpowerup.com/119073/NVIDIA_CUDA_Emulator_for_every_PC.html?cp=4
called CUDA Emulator Loader (2 MB) when we run it its screen like this:
http://img716.imageshack.us/img716/3927/cudaloader.png

it askes for the exe containig the openCL code. but what i do not know if we need the openCL run time library, i have geforce 7300 GT, so it is not qualified for openCL, this is why i am asking about emulation, if you have info about that.
thanks

PS: as refered by Petr in the following messages that intel 82845G have an OpenGL support, also by running the utility "OpenGL_GetInfo.tBasic" mentioned below.

Petr Schreiber
27-10-2010, 19:40
Hi Zak,

your graphic card architecture is too far from what would be needed for emulation on GPU, but if you have CPU from AMD, you can just switch the device from GPU to CPU and hapily continue working.

I would like to attach the AMD DLL here, but it would be violation of the licence. Please download the ATI Stream SDK (http://developer.amd.com/gpu/ATIStreamSDK/Pages/default.aspx) (it is huge, I know), find the DLL there (if I remember correctly, it is not named OpenCL.DLL, but it has OpenCL or OCL in name), and then copy the DLL to directory where thinBasic.exe is placed. From this moment you can enjoy OpenCL CPU power (same code as for GPU).

Intel is slightly behind, but I think the implementation from them should appear soon as well.


Petr

P.S. Your Intel card should have some older version perfectly enough for TBGL available. Could you run the script from here (OpenGL_GetInfo.tBasic) (http://community.thinbasic.com/index.php?topic=668.msg3885#msg3885)and post what it detected?

zak
27-10-2010, 21:44
thank you Petr for the info.
this is the first time i know that the CPU from AMD have this feature over intel cpu. no i have intel cpu.
below is the report produced from OpenGL_GetInfo.
regards

Vendor: NVIDIA CORPORATION
Renderer: GEFORCE 7300 GT/PCI/SSE2
OpenGL: 2.1.1
Extensions( 124 ):
GL_ARB_COLOR_BUFFER_FLOAT
GL_ARB_DEPTH_TEXTURE
GL_ARB_DRAW_BUFFERS
GL_ARB_FRAGMENT_PROGRAM
GL_ARB_FRAGMENT_PROGRAM_SHADOW
GL_ARB_FRAGMENT_SHADER
GL_ARB_HALF_FLOAT_PIXEL
GL_ARB_IMAGING
GL_ARB_MULTISAMPLE
GL_ARB_MULTITEXTURE
GL_ARB_OCCLUSION_QUERY
GL_ARB_PIXEL_BUFFER_OBJECT
GL_ARB_POINT_PARAMETERS
GL_ARB_POINT_SPRITE
GL_ARB_SHADOW
GL_ARB_SHADER_OBJECTS
GL_ARB_SHADING_LANGUAGE_100
GL_ARB_TEXTURE_BORDER_CLAMP
GL_ARB_TEXTURE_COMPRESSION
GL_ARB_TEXTURE_CUBE_MAP
GL_ARB_TEXTURE_ENV_ADD
GL_ARB_TEXTURE_ENV_COMBINE
GL_ARB_TEXTURE_ENV_DOT3
GL_ARB_TEXTURE_FLOAT
GL_ARB_TEXTURE_MIRRORED_REPEAT
GL_ARB_TEXTURE_NON_POWER_OF_TWO
GL_ARB_TEXTURE_RECTANGLE
GL_ARB_TRANSPOSE_MATRIX
GL_ARB_VERTEX_BUFFER_OBJECT
GL_ARB_VERTEX_PROGRAM
GL_ARB_VERTEX_SHADER
GL_ARB_WINDOW_POS
GL_ATI_DRAW_BUFFERS
GL_ATI_TEXTURE_FLOAT
GL_ATI_TEXTURE_MIRROR_ONCE
GL_S3_S3TC
GL_EXT_TEXTURE_ENV_ADD
GL_EXT_ABGR
GL_EXT_BGRA
GL_EXT_BLEND_COLOR
GL_EXT_BLEND_EQUATION_SEPARATE
GL_EXT_BLEND_FUNC_SEPARATE
GL_EXT_BLEND_MINMAX
GL_EXT_BLEND_SUBTRACT
GL_EXT_COMPILED_VERTEX_ARRAY
GL_EXT_CG_SHADER
GL_EXT_DEPTH_BOUNDS_TEST
GL_EXT_DRAW_RANGE_ELEMENTS
GL_EXT_FOG_COORD
GL_EXT_FRAMEBUFFER_BLIT
GL_EXT_FRAMEBUFFER_MULTISAMPLE
GL_EXT_FRAMEBUFFER_OBJECT
GL_EXT_GPU_PROGRAM_PARAMETERS
GL_EXT_MULTI_DRAW_ARRAYS
GL_EXT_PACKED_DEPTH_STENCIL
GL_EXT_PACKED_PIXELS
GL_EXT_PIXEL_BUFFER_OBJECT
GL_EXT_POINT_PARAMETERS
GL_EXT_RESCALE_NORMAL
GL_EXT_SECONDARY_COLOR
GL_EXT_SEPARATE_SPECULAR_COLOR
GL_EXT_SHADOW_FUNCS
GL_EXT_STENCIL_TWO_SIDE
GL_EXT_STENCIL_WRAP
GL_EXT_TEXTURE3D
GL_EXT_TEXTURE_COMPRESSION_S3TC
GL_EXT_TEXTURE_CUBE_MAP
GL_EXT_TEXTURE_EDGE_CLAMP
GL_EXT_TEXTURE_ENV_COMBINE
GL_EXT_TEXTURE_ENV_DOT3
GL_EXT_TEXTURE_FILTER_ANISOTROPIC
GL_EXT_TEXTURE_LOD
GL_EXT_TEXTURE_LOD_BIAS
GL_EXT_TEXTURE_MIRROR_CLAMP
GL_EXT_TEXTURE_OBJECT
GL_EXT_TEXTURE_SRGB
GL_EXT_TIMER_QUERY
GL_EXT_VERTEX_ARRAY
GL_IBM_RASTERPOS_CLIP
GL_IBM_TEXTURE_MIRRORED_REPEAT
GL_KTX_BUFFER_REGION
GL_NV_BLEND_SQUARE
GL_NV_COPY_DEPTH_TO_COLOR
GL_NV_DEPTH_CLAMP
GL_NV_FENCE
GL_NV_FLOAT_BUFFER
GL_NV_FOG_DISTANCE
GL_NV_FRAGMENT_PROGRAM
GL_NV_FRAGMENT_PROGRAM_OPTION
GL_NV_FRAGMENT_PROGRAM2
GL_NV_FRAMEBUFFER_MULTISAMPLE_COVERAGE
GL_NV_HALF_FLOAT
GL_NV_LIGHT_MAX_EXPONENT
GL_NV_MULTISAMPLE_FILTER_HINT
GL_NV_OCCLUSION_QUERY
GL_NV_PACKED_DEPTH_STENCIL
GL_NV_PIXEL_DATA_RANGE
GL_NV_POINT_SPRITE
GL_NV_PRIMITIVE_RESTART
GL_NV_REGISTER_COMBINERS
GL_NV_REGISTER_COMBINERS2
GL_NV_TEXGEN_REFLECTION
GL_NV_TEXTURE_COMPRESSION_VTC
GL_NV_TEXTURE_ENV_COMBINE4
GL_NV_TEXTURE_EXPAND_NORMAL
GL_NV_TEXTURE_RECTANGLE
GL_NV_TEXTURE_SHADER
GL_NV_TEXTURE_SHADER2
GL_NV_TEXTURE_SHADER3
GL_NV_VERTEX_ARRAY_RANGE
GL_NV_VERTEX_ARRAY_RANGE2
GL_NV_VERTEX_PROGRAM
GL_NV_VERTEX_PROGRAM1_1
GL_NV_VERTEX_PROGRAM2
GL_NV_VERTEX_PROGRAM2_OPTION
GL_NV_VERTEX_PROGRAM3
GL_NVX_CONDITIONAL_RENDER
GL_SGIS_GENERATE_MIPMAP
GL_SGIS_TEXTURE_LOD
GL_SGIX_DEPTH_TEXTURE
GL_SGIX_SHADOW
GL_SUN_SLICE_ACCUM
GL_WIN_SWAP_HINT
WGL_EXT_SWAP_CONTROL

Petr Schreiber
28-10-2010, 09:29
Hi Zak,

we will have to wait for Intel OpenCL implementation then. I was also surprised they did not payed attention to this. But lately, they don't pay attention to any other solutions than their own, with this approach they will not make many friends.

Thanks for the report, maybe you could try it on PC with Intel card, I am quite sure it has the OpenGL support as well.
Your GeForce 7300 is very good card, but sadly it is one generation older than OpenCL requires.


Petr

zak
28-10-2010, 12:30
Hi Petr
indeed i have surprised too much to know that my old intel 82845G graphic have an OpenGL support, it is build in, on a celeron intel motherboard and take the needed memory from the system ram.
i have run the OpenGL_GetInfo.tBasic on the old desktop pc and the following is the report, i will add a note to my first post to correct the info.
also the file "OpenGL_GetInfo.tBasic" in the above link due to the site download problems lack the last character "n" in "end functio".
thank you


Vendor: INTEL
Renderer: INTEL BROOKDALE-G
OpenGL: 1.3.0 - BUILD 4.13.01.3307
Extensions( 33 ):
GL_ARB_MULTITEXTURE
GL_ARB_TEXTURE_BORDER_CLAMP
GL_ARB_TEXTURE_COMPRESSION
GL_ARB_TEXTURE_CUBE_MAP
GL_ARB_TEXTURE_ENV_ADD
GL_ARB_TEXTURE_ENV_COMBINE
GL_ARB_TEXTURE_ENV_DOT3
GL_ARB_TEXTURE_ENV_CROSSBAR
GL_ARB_TRANSPOSE_MATRIX
GL_EXT_ABGR
GL_EXT_BGRA
GL_EXT_BLEND_COLOR
GL_EXT_BLEND_FUNC_SEPARATE
GL_EXT_BLEND_MINMAX
GL_EXT_BLEND_SUBTRACT
GL_EXT_CLIP_VOLUME_HINT
GL_EXT_COMPILED_VERTEX_ARRAY
GL_EXT_CULL_VERTEX
GL_EXT_FOG_COORD
GL_EXT_PACKED_PIXELS
GL_EXT_PACKED_PIXELS_12
GL_EXT_RESCALE_NORMAL
GL_EXT_SECONDARY_COLOR
GL_EXT_SEPARATE_SPECULAR_COLOR
GL_EXT_STENCIL_WRAP
GL_EXT_TEXTURE_COMPRESSION_S3TC
GL_EXT_TEXTURE_ENV_ADD
GL_EXT_TEXTURE_ENV_COMBINE
GL_EXT_TEXTURE_FILTER_ANISOTROPIC
GL_3DFX_TEXTURE_COMPRESSION_FXT1
GL_IBM_TEXTURE_MIRRORED_REPEAT
GL_NV_TEXGEN_REFLECTION
GL_WIN_SWAP_HINT