Skip to content

Commit

Permalink
Update test_gpu_backend
Browse files Browse the repository at this point in the history
  • Loading branch information
fhagemann committed Nov 5, 2024
1 parent 41ef21f commit a78a8c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ T = Float32
end

@timed_testset "SOR GPU Backend" begin
include("SOR_GPU_Backend.jl")
include("test_gpu_backend.jl")
end

@timed_testset "ConstructiveSolidGeometry" begin
Expand Down
7 changes: 6 additions & 1 deletion test/SOR_GPU_Backend.jl → test/test_gpu_backend.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# This file is a part of SolidStateDetectors.jl, licensed under the MIT License (MIT).

using Test
using SolidStateDetectors

abstract type pseudoGPUArray <: SolidStateDetectors.GPUArrays.AbstractGPUArray{T where T, N where N} end

@testset "Simulate example detector: Inverted Coax" begin
Expand All @@ -15,7 +20,7 @@ abstract type pseudoGPUArray <: SolidStateDetectors.GPUArrays.AbstractGPUArray{T
@test isapprox(ustrip(W), 2.41e-4, atol = 1e-5)
end

@testset "Simulate example detector: Inverted Coax" begin
@testset "Simulate example detector: CGD" begin
sim = Simulation{T}(SSD_examples[:CGD])

calculate_electric_potential!(
Expand Down

0 comments on commit a78a8c5

Please sign in to comment.