Accéder au contenu.
Menu Sympa

starpu-devel - Re: [Starpu-devel] Cannot use OpenCL on CPU

Objet : Developers list for StarPU

Archives de la liste

Re: [Starpu-devel] Cannot use OpenCL on CPU


Chronologique Discussions 
  • From: Nathalie Furmento <nathalie.furmento@labri.fr>
  • To: Berenger Bramas <berenger.bramas@inria.fr>
  • Cc: starpu-devel@lists.gforge.inria.fr
  • Subject: Re: [Starpu-devel] Cannot use OpenCL on CPU
  • Date: Thu, 14 Jan 2016 14:30:02 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=nathalie.furmento@labri.fr; spf=Pass smtp.mailfrom=nathalie.furmento@labri.fr; spf=Pass smtp.helo=postmaster@iona.labri.fr
  • Ironport-phdr: 9a23:aJ/hrxaMvB5uf9hXc+uTfm3/LSx+4OfEezUN459isYplN5qZpcW+bnLW6fgltlLVR4KTs6sC0LqI9fCxEjFYqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLsh770q8yYPl0ArQH+SI0xBS3+lR/WuMgSjNkqAYcK4TyNnEF1ff9Lz3hjP1OZkkW0zM6x+Jl+73YY4Kp5pIZoGJ/3dKUgTLFeEC9ucyVsvJWq5lH/Sl6l62ERVGobiFJiGQHA5QqyCp38qCb8uednniOANMj/Vpg1Xy6j5uFlUkm7pj0AMmsf+X3Xg8hxgep1vQikqhpjxMaAZoiJNPN6f66bc84AQGdHQsF5UyVLGIL6YZFZXLlJBvpRs4So/whGlhC5HwT5Qbq3kjI=
  • List-archive: <http://lists.gforge.inria.fr/pipermail/starpu-devel/>
  • List-id: "Developers list. For discussion of new features, code changes, etc." <starpu-devel.lists.gforge.inria.fr>

Could you send the output of the following command:

STARPU_OPENCL_ONLY_ON_CPUS=1 STARPU_OPENCL_ON_CPUS=1 starpu_machine_display

Thanks,

Nathalie

On 14/01/2016 14:26, Berenger Bramas wrote:
Hi Nathalie,

From the command I get the same behavior:

StarPU has found :
2 CPU threads
CPU 0
CPU 1
0 CUDA devices
0 OpenCL devices

topology ...
core 0 PU 0 CPU 0
PU 1
core 1 PU 2 CPU 1
PU 3

bandwidth and latency ...
from/to RAM
RAM 0

RAM 0


I use the svn from commit : r16748 | nfurmento | 2016-01-12 16:08:28 +0100 (mar. 12 janv. 2016)


And I can use OpenCL by hand on my CPU but not with StarPU.

Thanks.

Bérenger Bramas

HiePACS Project

Tel (05 24 57) 40 76
INRIA BORDEAUX Sud Ouest



De: "Nathalie Furmento" <nathalie.furmento@labri.fr>
À: "Berenger Bramas" <berenger.bramas@inria.fr>, starpu-devel@lists.gforge.inria.fr
Envoyé: Jeudi 14 Janvier 2016 14:19:32
Objet: Re: [Starpu-devel] Cannot use OpenCL on CPU

Hi Berenger,

Which version of StarPU are you using? How was it compiled?

If you start starpu_machine_display, what do you get?

Cheers,

Nathalie

On 14/01/2016 14:16, Berenger Bramas wrote:
Hello,
I am using OpenCL on CPU (mainly for development purpose)
StarPU was able to detect my CPU (Intel® Core™ i7-4610M CPU @ 3.00GHz × 4) as an OpenCL device until lately.

The following code is compiled well: ==================================================
#include <starpu.h>
#include <iostream>
#include <vector>
#include <unistd.h>

#ifndef STARPU_USE_OPENCL
#error StarPU must support opencl
#endif

int main(int /*argc*/, char** /*argv*/){
    setenv("STARPU_NCPU","0",1);
    setenv("STARPU_NOPENCL","1",1);
    setenv("STARPU_OPENCL_ONLY_ON_CPUS","1",1);
    setenv("STARPU_OPENCL_ON_CPUS","1",1);
    setenv("STARPU_DISABLE_ASYNCHRONOUS_OPENCL_COPY","1",1);
    setenv("STARPU_OPENCL_PIPELINE","0",0);

    std::cout << "STARPU_MAJOR_VERSION " << STARPU_MAJOR_VERSION << std::endl;
    std::cout << "STARPU_MINOR_VERSION " << STARPU_MINOR_VERSION << std::endl;
    std::cout << "STARPU_MAXOPENCLDEVS " << STARPU_MAXOPENCLDEVS << std::endl;

    unsigned ret;
    struct starpu_conf conf;
    ret = starpu_conf_init(&conf);
    assert(ret == 0);
    ret = starpu_init(&conf);
    assert(ret == 0);

    starpu_pause();

    std::cout << "starpu_worker_get_count " << starpu_worker_get_count() << std::endl;
    std::cout << "starpu_cpu_worker_get_count " << starpu_cpu_worker_get_count() << std::endl;
    std::cout << "starpu_opencl_worker_get_count " << starpu_opencl_worker_get_count() << std::endl;

    starpu_resume();
    starpu_shutdown();

    return 0;
}
==================================================

But at execution I get: ==================================================

$ ./Tests/Debug/testOpenCLCPU
STARPU_MAJOR_VERSION 1
STARPU_MINOR_VERSION 3
STARPU_MAXOPENCLDEVS 8
[starpu][starpu_initialize] Warning: StarPU was configured with --enable-debug (-O0), and is thus not optimized
[starpu][starpu_initialize] Warning: StarPU was configured with --enable-spinlock-check, which slows down a bit
[starpu][starpu_initialize] Warning: StarPU was configured with --enable-verbose, which slows down a bit
[starpu][starpu_initialize] Warning: StarPU was configured with --with-fxt, which slows down a bit
[starpu][load_bus_latency_file_content] loading latencies from /home/berenger/.starpu/sampling//bus/berenger-HP-ProBook-640-G1.latency
[starpu][load_bus_bandwidth_file_content] loading bandwidth from /home/berenger/.starpu/sampling//bus/berenger-HP-ProBook-640-G1.bandwidth
[starpu][_starpu_init_machine_config] No worker found, aborting ...
==================================================


Thanks for the help.

Bérenger Bramas

HiePACS Project

Tel (05 24 57) 40 76
INRIA BORDEAUX Sud Ouest




_______________________________________________
Starpu-devel mailing list
Starpu-devel@lists.gforge.inria.fr
http://lists.gforge.inria.fr/mailman/listinfo/starpu-devel






Archives gérées par MHonArc 2.6.19+.

Haut de le page