Commit 9e39bb2a authored by Berrill, Mark's avatar Berrill, Mark
Browse files

Fixing minor bug with HIP

parent 82f2313c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -185,7 +185,7 @@ void RayTraceImageCudaLoop( int N, const RayTrace::EUV_beam_struct& beam,
    const double da = beam.da;
    const double db = beam.db;
    const auto gain = RayTrace::ray_gain_struct::copy_device( N, gain_in );
    const auto seed = nullptr;
    const RayTrace::ray_seed_struct* seed = nullptr;
    if ( seed_in!=NULL )
        seed = seed_in->copy_device();
    // Allocate device memory
+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ void RayTraceImageHIPLoop( int N, const RayTrace::EUV_beam_struct& beam,
    const double da = beam.da;
    const double db = beam.db;
    const auto gain = RayTrace::ray_gain_struct::copy_device( N, gain_in );
    const auto seed = nullptr;
    const RayTrace::ray_seed_struct* seed = nullptr;
    if ( seed_in!=NULL )
        seed = seed_in->copy_device();
    // Allocate device memory