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: Berenger Bramas <berenger.bramas@inria.fr>
  • To: Nathalie Furmento <nathalie.furmento@labri.fr>
  • Subject: Re: [Starpu-devel] Cannot use OpenCL on CPU
  • Date: Thu, 14 Jan 2016 14:37:30 +0100 (CET)
  • Authentication-results: mail3-smtp-sop.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:eUfF4hZ8N8sT3sA0wHuh0Zr/LSx+4OfEezUN459isYplN5qZpcW+bnLW6fgltlLVR4KTs6sC0LqI9fCxEjFbqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLsh770q8yYPl4ArQH+SI0xBS3+lR/WuMgSjNkqAYcK4TyNnEF1ff9Lz3hjP1OZkkW0zM6x+Jl+73YY4Kp5pIZoGJ/3dKUgTLFeEC9ucyVsvJWq5lH/Sl6p72ccW2EXn1JmHhLA4RfmWd+ltCLmtuN52STcM9DsSL0yRTOK665hUh6uhj1RZBAj92SCoMFqgaRUrQjpjQZ2xofPKNWfOeBzeKzQZ5UQX2NEV915VipbA4r6YZFZXLlJBvpRs4So/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>
  • Resent-date: Thu, 14 Jan 2016 14:57:25 +0100
  • Resent-from: Nathalie Furmento <nathalie.furmento@labri.fr>
  • Resent-message-id: <5697A945.8020001@labri.fr>
  • Resent-to: "starpu-devel@lists.gforge.inria.fr" <starpu-devel@lists.gforge.inria.fr>
  • Resent-user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.4.0

From Samuel test I get:
===========================================

./Tests/Debug/starpuopenclversion
1 platforms
platform 0 id 0x2149e60
platform version OpenCL 1.2 LINUX
1 devices
device 0 version OpenCL 1.2 (Build 43) align 1024

===========================================


For the  starpu_machine_display I get something similar (I alos copy/paste the extra info lines):
===========================================
STARPU_OPENCL_ONLY_ON_CPUS=1 STARPU_OPENCL_ON_CPUS=1 starpu_machine_display

[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_workers_binding] worker 0 type 0 devid 0 bound to cpu 0, STARPU memory node 0
[starpu][_starpu_init_workers_binding] worker 1 type 0 devid 1 bound to cpu 2, STARPU memory node 0
[starpu][load_sched_policy] Use eager scheduler (eager policy with a central queue)
[starpu][initialize_eager_center_policy] Warning: you are running the default eager scheduler, which is not very smart. Make sure to read the StarPU documentation about adding performance models in order to be able to use the dmda or dmdas scheduler instead.
[starpu][_starpu_launch_drivers] initialising worker 0/2
[starpu][_starpu_driver_start] worker 0x7f08694a01c0 0 for dev 0 is ready on logical cpu 0
[starpu][_starpu_driver_start] worker 0x7f08694a01c0 0 cpuset start at 0
[starpu][_starpu_memory_manager_set_global_memory_size] Global size for node 0 is 8265146368
[starpu][_starpu_launch_drivers] initialising worker 1/2
[starpu][_starpu_driver_start] worker 0x7f08694a05c0 1 for dev 1 is ready on logical cpu 2
[starpu][_starpu_driver_start] worker 0x7f08694a05c0 1 cpuset start at 2
[starpu][_starpu_launch_drivers] waiting for worker 0 initialization
[starpu][_starpu_launch_drivers] waiting for worker 1 initialization
[starpu][_starpu_launch_drivers] finished launching drivers
[starpu][starpu_initialize] Initialisation finished
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
[starpu][_starpu_deinitialize_registered_performance_models] FREE MODELS !
[starpu][_starpu_terminate_workers] wait for worker 0
[starpu][_starpu_terminate_workers] wait for worker 1
[starpu][_starpu_barrier_destroy] reached_exit 0
[starpu][_starpu_barrier_destroy] reached_exit 0
Writing FxT traces into file berenger-HP-ProBook-640-G1:/tmp/prof_file_berenger_0
[starpu][starpu_shutdown] Shutdown finished
===========================================


I am the only one with this problem, I might need to purge my system.
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>
Cc: starpu-devel@lists.gforge.inria.fr
Envoyé: Jeudi 14 Janvier 2016 14:30:02
Objet: Re: [Starpu-devel] Cannot use OpenCL on CPU

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:
47934773.36390109.1452777984947.JavaMail.zimbra@inria.fr">
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:
46446358.36380429.1452777376012.JavaMail.zimbra@inria.fr">
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