Skip to content

Commit

Permalink
Remove TestEM3, add test for example1
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanGonzalezCaminero committed Mar 14, 2024
1 parent 57e3d5e commit c5cce6e
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 1,642 deletions.
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,19 +127,6 @@ target_link_libraries(example_target <SCOPE>
${AdePT_LIBRARIES})
```

### Targets dependent on vecgeomcuda

When using AdePT_LIBRARIES we are linking against the library AdePT::AdePT_cuda, which in turn links to the static library VecGeom::vecgeomcuda_static. For most purposes this will be fine, however, in case the final executable uses some feature from vecgeomcuda and needs to link against it, this aproach will not work.

In order to address this we provide AdePT::AdePT_cuda_standalone, which links with the shared VecGeom::vecgeomcuda. This allows the final executable to correctly link with VecGeom::vecgeomcuda_static. This library is provided as part of AdePT_LIBRARIES_EXTRA.

```
target_link_libraries(example_target <SCOPE>
<TARGET LINK LIBRARIES>
VecGeom::vecgeomcuda_static
${AdePT_LIBRARIES_EXTRA})
```

## Copyright

AdePT code is Copyright (C) CERN, 2020, for the benefit of the AdePT project.
Expand Down
5 changes: 5 additions & 0 deletions examples/Example1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ target_link_libraries(example1
)

# Install macros and geometry file
SET(GDML ${PROJECT_BINARY_DIR}/cms2018_sd.gdml)
configure_file("macros/example1.mac.in" "${PROJECT_BINARY_DIR}/example1.mac")
configure_file("macros/example1_ttbar.mac.in" "${PROJECT_BINARY_DIR}/example1_ttbar.mac")

# Tests

add_test(NAME example1
COMMAND $<TARGET_FILE:example1> -m ${PROJECT_BINARY_DIR}/example1.mac
)
4 changes: 2 additions & 2 deletions examples/Example1/macros/example1.mac.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
##
/adept/setSeed 1

/detector/filename cms2018_sd.gdml
/detector/filename @GDML@
# Temporary workaround since we don't have a G4 to VecGeom converter
/adept/setVecGeomGDML cms2018_sd.gdml
/adept/setVecGeomGDML @GDML@
/adept/setVerbosity 0
## Threshold for buffering tracks before sending to GPU
/adept/setTransportBufferThreshold 2000
Expand Down
1 change: 0 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ file(DOWNLOAD https://gitlab.cern.ch/VecGeom/VecGeom/raw/v1.2.0/persistency/gdml
# Detailed tests
#----------------------------------------------------------------------------#
add_subdirectory(testField)
# add_subdirectory(TestEm3)

#----------------------------------------------------------------------------#
# Link/RDC tests
Expand Down
25 changes: 0 additions & 25 deletions test/TestEm3/CMakeLists.txt

This file was deleted.

53 changes: 0 additions & 53 deletions test/TestEm3/README.md

This file was deleted.

Loading

0 comments on commit c5cce6e

Please sign in to comment.