• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

bin/H03-May-2022-354262

cmake/H12-Oct-2021-2,0051,686

doc/sphinx/H12-Oct-2021-3,2882,351

examples/H03-May-2022-58,05753,669

include/H03-May-2022-21,87515,095

lib/H03-May-2022-257,110197,284

tests/H03-May-2022-37,98831,867

tools/H12-Oct-2021-9,7109,142

.drone.ymlH A D12-Oct-20214.7 KiB166148

.gitattributesH A D12-Oct-20211.7 KiB3931

.gitignoreH A D12-Oct-20211.1 KiB8163

.mailmapH A D12-Oct-20212.4 KiB4834

.travis.ymlH A D12-Oct-20212.1 KiB6451

CHANGESH A D12-Oct-202132.1 KiB860725

COPYINGH A D12-Oct-20211 KiB2016

CREDITSH A D12-Oct-20212.4 KiB8684

INSTALLH A D12-Oct-202113.3 KiB341248

LICENSEH A D12-Oct-20211 KiB2016

READMEH A D12-Oct-2021396 138

README.ARMH A D12-Oct-2021684 1611

README.WindowsH A D12-Oct-20211.4 KiB4531

README.packagingH A D12-Oct-20211.5 KiB3529

TODOH A D12-Oct-20211.4 KiB3728

ToolchainExample.cmakeH A D12-Oct-20212.5 KiB5549

config.h.in.cmakeH A D03-May-20224.7 KiB246130

config2.h.in.cmakeH A D12-Oct-2021181 63

pocl.icd.inH A D12-Oct-202124 21

pocl.icd.in.cmakeH A D12-Oct-202154 21

pocl.pc.in.cmakeH A D12-Oct-2021306 129

README

1Portable Computing Language (pocl)
2----------------------------------
3pocl is being developed towards an efficient implementation of OpenCL standard
4which can be easily adapted for new targets.
5
6Please refer to the file INSTALL in this directory for building and installing
7pocl.
8
9More documentation available at http://portablecl.org/docs/html/
10The main web page is at http://portablecl.org
11
12
13

README.ARM

1pocl builds (as of Aug 2017) on ODROID XU3 and ODROID C2
2but some tests fail.
3
4How to build:
5
6* get a clang / llvm. DO NOT use the ones downloaded from llvm.org, they only work
7  on the distro where they were compiled. Ubuntu LTS these days ships multiple llvm
8  versions even quite recent ones; get the clang+llvm from your distro's packages.
9
10* read the pocl install/build instructions in docs
11
12* LLVM will likely not recognize your cpu, and running cmake will give you a warning.
13  run cmake with -DLLC_HOST_CPU=<yourcpu>. "yourcpu" must be something LLVM recognizes,
14  usually it's simply "cortex-aXX" like cortex-a15 etc. You can get the full list by
15  running `llc -mcpu=help`.
16

README.Windows

1
2# WARNING: this document is seriously outdated
3#
4# considering we haven't had anyone maintaining
5# the Windows build since about 2016, getting the
6# current PoCL code to build on Windows will likely
7# require much more effort than this howto describes.
8
9# Compiling pocl on Windows
10
11## Dependencies:
12
13- Visual Studio 2013
14- Git and Git bash http://git-scm.com/downloads
15- CMake 2.8 or newer http://www.cmake.org/download/
16- Python 2.7 for LLVM
17- Pthreads-win32 binary distribution https://www.sourceware.org/pthreads-win32/
18- Hwloc for Windows x64 binary distribution http://www.open-mpi.org/software/hwloc/v1.10/
19- LLVM + Clang latest release sources
20
21## Support:
22
23- Only 64bit compiling for now
24- No ICD compiling
25- No VML (no stdcxxlib finding done for windows)
26- Static compilation
27
28## Building
29
30There is shell script in `pocl/windows/setup_and_build_win64.sh`
31
32Shell script may be ran in `Git Bash` and it downloads and installs pocl and all the
33library dependencies and builds them to `/c/pocl-playground`.
34
35To download and build everything without first fetching pocl repository one can do simply:
36
37    curl https://github.com/pocl/pocl/raw/master/windows/setup_and_build_win64.sh | sh
38
39Script requires following software installed on Windows 7 or later (64bit only):
40
41- Visual Studio 2013 (e.g. community edition)
42- Cmake 2.8 or later (must be added to PATH)
43- Git + Git Bash
44- Python 2.7 for compiling LLVM
45

README.packaging

1This file contains notes for making distribution packages of pocl.
2
3ICD
4---
5Pocl should probably be built with ICD enabled (``-DENABLE_ICD=ON`` CMake
6option) for desktop distributions. Pocl does not have an ICD loader,
7so a dependancy on one would be beneficial.
8
9CMake options for a distribution build
10--------------------------------------
11- ``-DKERNELLIB_HOST_CPU_VARIANTS=distro``
12  Note: this note only works for x86(-64) platform currently,
13  on other platforms, it has zero effect.
14  Enables runtime detection of CPU and builds separate
15  kernel libraries for most common x86 CPUs.
16
17- ``-DPOCL_ICD_ABSOLUTE_PATH=OFF``
18  The pocl.icd file (which the ICD loader uses to load the pocl lib)
19  by default has a full path to the installed libpocl.so file.
20  Set this option to OFF and pocl will only put the dynamic library
21  name into pocl.icd.
22
23- ``-DENABLE_POCL_BUILDING=OFF``
24  When OFF, POCL_BUILDING option (which causes pocl to look for required
25  files in build / source directories) will be ignored
26  and pocl will always look in installed paths only.
27
28Mesa (OpenGL) interoperability
29------------------------------
30On some current (Jan 2014) Linux distibutions, mesa is built with LLVMpipe.
31If pocl is built against a shared LLVM library, the mesa calls to its LLVM
32will be re-routed to the LLVM linked in pocl, causing a segfault. Consider
33linking LLVM statically to pocl. At least 'nouveau' and 'swrast_dri' are
34known to suffer from this. See https://github.com/pocl/pocl/issues/46
35