From 3b57b471bfed0dec68d39c252a40d26355e3d7f2 Mon Sep 17 00:00:00 2001 From: Tom Fearon <67373762+tf17270@users.noreply.github.com> Date: Mon, 21 Oct 2024 08:50:53 +0100 Subject: [PATCH] Update frequency_domain_models.cu --- .../source/frequency_domain_models.cu | 76 ++----------------- 1 file changed, 7 insertions(+), 69 deletions(-) diff --git a/lyceanem/CUDA_source/EM_workspace/source/frequency_domain_models.cu b/lyceanem/CUDA_source/EM_workspace/source/frequency_domain_models.cu index 11ae59a..86119d5 100644 --- a/lyceanem/CUDA_source/EM_workspace/source/frequency_domain_models.cu +++ b/lyceanem/CUDA_source/EM_workspace/source/frequency_domain_models.cu @@ -196,6 +196,7 @@ py::array_t> calculate_scattering(py::array_t source, for (int i = 0; i < source_size; i++){ + std::cout<> calculate_scattering(py::array_t source, py::array_t> scattering_network_py = py::array_t>(source_size * end_size *3); std::cout<<"Hi from post declare numpy complex array"<* scattering_network_py_ptr = (std::complex*) scattering_network_py.request().ptr; + std::cout<<"hi"< scattering_network(source_size_gpu * end_size); - //pointer to the scattering network - complex_float3* scattering_network_ptr = scattering_network.data(); - - - - std::pair rays = raycast_wrapper(&source_ptr[source_index], end_ptr, scatter_ptr, source_size_gpu, end_size, scatter_size, triangle_vertex_ptr, triangles_ptr, triangle_size); - frequency_wrapper( scatter_depth, rays.first, points, rays.second, wave_length, source_size_gpu, scatter_size, end_size,scattering_network_ptr); - - for (int i = 0; i < scattering_network.size() ; i++){ - ////std::cout<< "indexes "< scattering_network(source_size* end_size); - std::cout<<"Hi from post declare scattering network"< grid_structure = grid_structure_builder_wrapper(triangle_vertex_ptr, triangles_ptr, triangle_size, make_int2(tile_numy,tile_numz), make_float2(xmin,xmax), make_float2(ymin,tile_size), make_float2(zmin,tile_size), tri_vertex_size); - //std::cout<<"hi2"<(grid_structure); - - - //std::cout<<"hi3"<(begin_time2 - end_time).count() << "ms"< rays = raycast_wrapper(source_ptr, end_ptr, scatter_ptr, source_size, end_size, scatter_size, triangle_vertex_ptr, triangles_ptr, triangle_size); - - //frequency_wrapper( 0, rays.first, points, rays.second, wave_length, source_size, scatter_size, end_size,scattering_network_ptr); - //std::cout << "Time taken for frequency_wrapper: " << std::chrono::duration_cast(end_time2 - begin_time2).count() << "ms" << std::endl; - //std::cout<<"hi4"<(end_time - now).count() << "ms"<> calculate_scattering(py::array_t source, } + std::cout<<"hi"<(lasttttt - fisttttt).count() << "ms" << std::endl; - //std::cout<< "time taken post build till coppierd "<(lasttttt - end_time).count() << "ms"<