/tomo/pyhst

To get this branch, use:
bzr branch http://darksoft.org/webbzr/tomo/pyhst

« back to all changes in this revision

Viewing changes to hst_opencl/hst_opencl.c

  • Committer: Suren A. Chilingaryan
  • Date: 2011-04-06 09:59:26 UTC
  • Revision ID: csa@dside.dyndns.org-20110406095926-e5w5zgtcwsl3cr75
Add COPYING and fix license statements

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * hst_opencl.c
3
 
 * This file is part of PyHST
4
 
 *
5
 
 * Copyright (C) 2011 - Matthias Vogelgesang
6
 
 * Copyright (C) 2002-2008 the European Synchrotron Radiation Facility (ESRF).
 
2
 * The PyHST program is Copyright (C) 2002-2011 of the
 
3
 * European Synchrotron Radiation Facility (ESRF) and
 
4
 * Karlsruhe Institute of Technology (KIT).
7
5
 *
8
6
 * PyHST is free software: you can redistribute it and/or modify it
9
7
 * under the terms of the GNU General Public License as published by the
10
8
 * Free Software Foundation, either version 3 of the License, or
11
9
 * (at your option) any later version.
12
 
 *
13
 
 * PyHST is distributed in the hope that it will be useful, but
 
10
 * 
 
11
 * hst is distributed in the hope that it will be useful, but
14
12
 * WITHOUT ANY WARRANTY; without even the implied warranty of
15
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
14
 * See the GNU General Public License for more details.
17
 
 *
 
15
 * 
18
16
 * You should have received a copy of the GNU General Public License along
19
17
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
20
18
 */
 
19
 
21
20
#define _GNU_SOURCE
22
21
 
23
22
#include <stdio.h>
43
42
#define HST_OPENCL_CONST_HACK
44
43
#define HST_OPENCL_BUILD_FLAGS NULL //"-cl-denorms-are-zero -cl-mad-enable -cl-no-signed-zeros -cl-unsafe-math-optimizations -cl-finite-math-only"
45
44
//#define HST_OPENCL_LOAD_PTX "/tmp/hst_opencl.ptx"
46
 
#define HST_OPENCL_SAVE_PTX "/tmp/hst_opencl.ptx"
 
45
//#define HST_OPENCL_SAVE_PTX "/tmp/hst_opencl.ptx"
47
46
#define MAX_PROJECTIONS 4000
48
47
 
49
48
#ifdef HST_OPENCL_LOAD_PTX