Oliver

I am using pocl on OSX, and I am also building and using it without ICD. I
don't encounter any issues in this respect -- I simply link against pocl
instead of against Apple's OpenCL library, and things work fine.

Did you run "make check"? This should run a few self-tests, including one
called "Scalar wave equation" that I contributed. This is a full physics
application (albeit with a small grid), and if this runs fine, things
should be basically working for you.

-erik



On Sat, May 18, 2013 at 4:36 PM, O. Hartmann <[email protected]>wrote:

> Hello list.
>
> Well, first, I'm not a developer and professional, so please have mercy
> with some naiv questions I might ask.
>
> I try to port (it is more a "make" than porting) pocl-0.8 to build and
> work on FreeBSD (I'm on FreeBSD 10.0-CURRENT, most recent source base,
> CLANG 3.3 base compile, deve/llvm-devel LLVM backend from the ports
> system).
>
> I managed to create a port using the FreeBSD port's framework. Since
> POCL is missing an ICD, I had to compile pocl-0.8 "--disable-icd"
> configured.
>
> There is an opensource project called "ocl-icd" which I'm aware of, but
> it doesn't "configure" on FreeBSD (I guess too many Linuxism) or I'm to
> dull to get it right. The autotools fail with some weird missing macro
> definitions.
> But this is something which isn't so important at the moment.
>
> Well, I managed to build the libOpenCL.so library and I also managed to
> to use a small program which tries to get the platform. And here the
> problems seem to start for me.
>
> The below shown code snippet is part of the program (some excercises I
> found):
>
> num_platforms is set to one (1), but the er code is -1 and this is an
> error and the software exits as defined.
>
> I do not understand why there is an error code (-1) returned. If I avoid
> the exit(), I get some informations about the platform, which looks all
> right to me (see below).
>
> ---
> if ((err = clGetPlatformIDs(PLFMAX, NULL, &num_platforms)) < 0)
>         {
>                 fprintf(stdout, "\nplatformInfo(): num_platforms = %
> d.\n", num_platforms);
>                 perror("\nplatformInfo(): Could not get any suitable
> platform!");
>
>                 exit(EXIT_FAILURE);
>
>         }
> ---
>
> Result:
> Found 1 out of 128 platforms.
>
> Platform 0 name: Portable Computing Language
>
> Platform 0 supports extensions:
>
> Platform 0 vendor: The pocl project
>
> Platform 0 version: OpenCL 1.2 pocl 0.8
>
> Platform 0 profile: FULL_PROFILE
>
> No platform support the cl_khr_icd extension.
>         -> Search for max 128 Devices on Platform 0.
>
>         -> Error: Code -1.
>         -> Error: num_devices = 1.
>         -> Error: Could not find any devices on given platform! : No
> error: 0
>
> platformInfo(): Found 1 devices on platform 0.
>
> freePlatformList(): Killing the platform housekeeping list.
> Freeing platform No. 1:
>
>
> This is the result when I avoid the exit() on the error code:
>
> Found 1 out of 128 platforms.
>
> Platform 0 name: Portable Computing Language
>
> Platform 0 supports extensions:
>
> Platform 0 vendor: The pocl project
>
> Platform 0 version: OpenCL 1.2 pocl 0.8
>
> Platform 0 profile: FULL_PROFILE
>
> No platform support the cl_khr_icd extension.
>         -> Search for max 128 Devices on Platform 0.
>
>         -> Error: Code -1.
>         -> Error: num_devices = 1.
>         -> Error: Could not find any devices on given platform! : No
> error: 0
>         -> Device 0 name: pthread
>
>         -> Device 0 vendor: unknown
>
>         -> Device 0 extensions:
>
>         -> Device 0 global memory size: 0
>
>         -> Device 0 address bits: 0
>
>         -> Device 0 available: 0
>
>         -> Device 0 available: 0
>
>
> platformInfo(): Found 1 devices on platform 0.
>
> freePlatformList(): Killing the platform housekeeping list.
> Freeing platform No. 1:
>         -> Freeing devList: Device No. 0
>
>
>
> Maybe someone could shed some light on that.
>
> Sorry for the noise on the development list. Maybe there is a more
> suitable place to ask such naive questions?
>
> Regards,
>
> Oliver
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> pocl-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pocl-devel
>
>


-- 
Erik Schnetter <[email protected]>
http://www.perimeterinstitute.ca/personal/eschnetter/
AIM: eschnett247, Skype: eschnett, Google Talk: [email protected]
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel

Reply via email to