/[escript]/trunk/cusplibrary/cusp/memory.h
ViewVC logotype

Annotation of /trunk/cusplibrary/cusp/memory.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5148 - (hide annotations)
Mon Sep 15 01:25:23 2014 UTC (5 years, 9 months ago) by caltinay
File MIME type: text/plain
File size: 1497 byte(s)
Merging ripley diagonal storage + CUDA support into trunk.
Options file version has been incremented due to new options
'cuda' and 'nvccflags'.

1 caltinay 4955 /*
2     * Copyright 2008-2009 NVIDIA Corporation
3     *
4     * Licensed under the Apache License, Version 2.0 (the "License");
5     * you may not use this file except in compliance with the License.
6     * You may obtain a copy of the License at
7     *
8     * http://www.apache.org/licenses/LICENSE-2.0
9     *
10     * Unless required by applicable law or agreed to in writing, software
11     * distributed under the License is distributed on an "AS IS" BASIS,
12     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     * See the License for the specific language governing permissions and
14     * limitations under the License.
15     */
16    
17     /*! \file memory.h
18     * \brief Memory spaces and allocators
19     */
20    
21     #pragma once
22    
23     #include <cusp/detail/config.h>
24    
25     #include <thrust/iterator/iterator_traits.h>
26    
27     namespace cusp
28     {
29    
30     #if THRUST_VERSION >= 100600
31     typedef thrust::host_system_tag host_memory;
32     typedef thrust::device_system_tag device_memory;
33     typedef thrust::any_system_tag any_memory;
34     #else
35     typedef thrust::host_space_tag host_memory;
36     typedef thrust::detail::default_device_space_tag device_memory;
37     typedef thrust::any_space_tag any_memory;
38     #endif
39    
40     template<typename T, typename MemorySpace>
41     struct default_memory_allocator;
42    
43     template <typename MemorySpace1, typename MemorySpace2=any_memory, typename MemorySpace3=any_memory>
44     struct minimum_space;
45    
46    
47     } // end namespace cusp
48    
49     #include <cusp/detail/memory.inl>
50    

  ViewVC Help
Powered by ViewVC 1.1.26