ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/OpenCL/Makefile.PL
(Generate patch)

Comparing OpenCL/Makefile.PL (file contents):
Revision 1.6 by root, Thu Apr 19 14:34:56 2012 UTC vs.
Revision 1.9 by root, Tue Apr 24 14:57:06 2012 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2
3print <<EOF;
4
5*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
6
7
8OpenCL does not have good backwards compatibility - for example, the only
9way to create a 2D image in OpenCL 1.1 is clCreateImage2D, which is not
10available anymore with OpenCL 1.2.
11
12The OpenCL module can often emulate OpenCL 1.1 functions using OpenCL 1.2
13functions, but even though your OpenCL library might contain the OpenCL
141.2 functions, they might be nonfunctional and crash.
15
16Do you want to prefer the OpenCL 1.1 API over the 1.2 API where possible?
17
18EOF
19
20my $DEFINE .= " -DPREFER_1_1=" . (0 + (prompt ("Prefer OpenCL 1.1 over 1.2 functions (y/n)?", "y") =~ /[yY]/));
2 21
3WriteMakefile( 22WriteMakefile(
4 dist => { 23 dist => {
5 PREOP => 'pod2text OpenCL.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 24 PREOP => 'pod2text OpenCL.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
6 COMPRESS => 'gzip -9v', 25 COMPRESS => 'gzip -9v',
7 SUFFIX => '.gz', 26 SUFFIX => '.gz',
8 }, 27 },
9 PREREQ_PM => { 28 PREREQ_PM => {
10 common::sense => 0, 29 common::sense => 0,
30# Async::Interrupt => 0,
11 }, 31 },
12 DEFINE => $DEFINE, 32 DEFINE => $DEFINE,
13 NAME => "OpenCL", 33 NAME => "OpenCL",
14 VERSION_FROM => "OpenCL.pm", 34 VERSION_FROM => "OpenCL.pm",
15 LIBS => ["-lOpenCL"], 35 LIBS => ["-lOpenCL"],

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines