Skip to content

Commit 650a939

Browse files
committed
Generates HIP from CUDA
1 parent aabf889 commit 650a939

File tree

67 files changed

+14354
-966
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+14354
-966
lines changed

Common/CUDA/GD_AwTV.cu

+76-75
Large diffs are not rendered by default.

Common/CUDA/GD_AwTV.cu.prehip

+713
Large diffs are not rendered by default.

Common/CUDA/GD_AwTV.hpp.prehip

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*-------------------------------------------------------------------------
2+
*
3+
* Header for CUDA functions for Steepest descend in POCS-type algorithms.
4+
*
5+
* This file has the required headers for POCS_TV.cu
6+
*
7+
* CODE by Ander Biguri
8+
*
9+
---------------------------------------------------------------------------
10+
---------------------------------------------------------------------------
11+
Copyright (c) 2015, University of Bath and CERN- European Organization for
12+
Nuclear Research
13+
All rights reserved.
14+
15+
Redistribution and use in source and binary forms, with or without
16+
modification, are permitted provided that the following conditions are met:
17+
18+
1. Redistributions of source code must retain the above copyright notice,
19+
this list of conditions and the following disclaimer.
20+
21+
2. Redistributions in binary form must reproduce the above copyright notice,
22+
this list of conditions and the following disclaimer in the documentation
23+
and/or other materials provided with the distribution.
24+
25+
3. Neither the name of the copyright holder nor the names of its contributors
26+
may be used to endorse or promote products derived from this software without
27+
specific prior written permission.
28+
29+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
30+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
33+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
34+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
35+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
36+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
37+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
38+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
39+
POSSIBILITY OF SUCH DAMAGE.
40+
---------------------------------------------------------------------------
41+
42+
43+
Codes : https://github.com/CERN/TIGRE
44+
---------------------------------------------------------------------------
45+
*/
46+
47+
48+
49+
50+
51+
52+
53+
#ifndef GD_AwTV_HPP
54+
#define GD_AwTV_HPP
55+
#include "TIGRE_common.hpp"
56+
#include "GpuIds.hpp"
57+
58+
void aw_pocs_tv(float* img,float* dst,float alpha,const long* image_size, int maxIter,const float delta, const GpuIds& gpuids);
59+
void checkFreeMemory(const GpuIds& gpuids, size_t *mem_GPU_global);
60+
61+
62+
#endif

Common/CUDA/GD_TV.cu

+78-77
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)