Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • BrukerDataLoader
  • YXLONDataLoader
  • anatomical_prior
  • python_demos
  • his_reader
  • spectral_temporal_algos
  • flatten_detector
  • yushan-TIGRE-multi-GPU
  • deprecated-pydev
  • v2.2
  • v2.1
  • v2.0
  • py-v0.1.8
  • py-V0.1.7
  • pyv0.1.6
  • pyv0.1.5
  • v1.5
  • v1.4
  • v1.3.1
  • v1.2.1
  • v1.3
  • v1.2
  • v1.1.7-fix2
  • v1.1.7-fix
  • v1.1.7
  • v1.1.6-fix
  • v1.1.6
  • v1.1.5
  • 1.1.4
30 results

Siddon_projection_parallel.cu

Blame
    • Tomo's avatar
      f4d46cac
      Fixed compilation error · f4d46cac
      Tomo authored
      * error: calling a __host__ function("__ceilf") from a __global__ ...
      * error: identifier "__ceilf" is undefined in device code
      f4d46cac
      History
      Fixed compilation error
      Tomo authored
      * error: calling a __host__ function("__ceilf") from a __global__ ...
      * error: identifier "__ceilf" is undefined in device code
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    s2_e3.1_rawPtr.cxx 800 B
    // SPDX-FileCopyrightText: © 2022 Competence Center for High Performance Computing in Hessen (HKHLR) <christian.iwainksy@hpc-hessen.de>
    //
    // SPDX-License-Identifier: MIT
    
    #include <memory>
    #include <iostream>
    using namespace std;
    struct Example {
      int myInt;
      Example(int arg):myInt(arg){};
      virtual ~Example(){cout<<"~Example" << myInt<<endl;};
    };
    struct Adapter {
      Example * TheExample;
      Adapter(Example * arg):TheExample(arg){};
      Example * get(){return TheExample;}
    };
    
    int main(int argc,char**){
      Example * rawPtr = new Example(11);
      cout << "rawPtr = " << rawPtr<< endl;
      Adapter adapter=Adapter(rawPtr);
      cout << "rawPtr = " << rawPtr<< endl;
      cout << "Use of example:" << adapter.get()->myInt << endl;
      adapter=Adapter(nullptr);
      cout << "End of Program" << endl;
      return 0;
    }