Skip to content

Commit 8c75fa7

Browse files
authoredFeb 19, 2025··
Merge pull request #352 from mach3-software/dbarrow257/feature/NuOscVersBump
feat: Bump to NuOsc v1.2.1
2 parents bdd0091 + c0bc38a commit 8c75fa7

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed
 

‎README.md

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ Following neutrino oscillation calculators are available:
111111
| Prob3++Linear | CPU | Beam | |
112112
| NuFastLinear | CPU | Beam | [Ref](https://doi.org/10.48550/arXiv.2405.02400) |
113113
| OscProb | CPU | Beam/Atm | [Ref](https://doi.org/10.5281/zenodo.6347002) |
114+
| NuSQUIDSLinear | CPU | Beam | [Ref](https://doi.org/10.1016/j.cpc.2022.108346) |
114115

115116
If nothing is specified in cmake build then NuFastLinear_ENABLED will be used. To control which oscillation calculators you want to use here is syntax:
116117

‎cmake/Modules/NuOscillatorSetup.cmake

+8-10
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ DefineEnabledRequiredSwitch(CUDAProb3_ENABLED FALSE)
66
DefineEnabledRequiredSwitch(ProbGPULinear_ENABLED FALSE)
77
DefineEnabledRequiredSwitch(Prob3ppLinear_ENABLED FALSE)
88
DefineEnabledRequiredSwitch(NuFastLinear_ENABLED FALSE)
9+
DefineEnabledRequiredSwitch(NuSQUIDSLinear_ENABLED FALSE)
910
DefineEnabledRequiredSwitch(OscProb_ENABLED FALSE)
1011

1112
#KS: If all Oscillators are turned off then enable CUDAProb3Linear_ENABLED
@@ -14,6 +15,7 @@ if (NOT CUDAProb3Linear_ENABLED AND
1415
NOT ProbGPULinear_ENABLED AND
1516
NOT Prob3ppLinear_ENABLED AND
1617
NOT NuFastLinear_ENABLED AND
18+
NOT NuSQUIDSLinear_ENABLED AND
1719
NOT OscProb_ENABLED)
1820
set(NuFastLinear_ENABLED TRUE)
1921
endif()
@@ -26,6 +28,7 @@ foreach(option
2628
ProbGPULinear
2729
Prob3ppLinear
2830
NuFastLinear
31+
NuSQUIDSLinear
2932
OscProb
3033
)
3134
if(${option}_ENABLED)
@@ -38,7 +41,8 @@ IsTrue(CUDAProb3Linear_ENABLED USE_CUDAProb3Linear)
3841
IsTrue(CUDAProb3_ENABLED USE_CUDAProb3)
3942
IsTrue(ProbGPULinear_ENABLED USE_ProbGPULinear)
4043
IsTrue(Prob3ppLinear_ENABLED USE_Prob3ppLinear)
41-
IsTrue(NuFastLinear_ENABLED USE_NuFastLiner)
44+
IsTrue(NuFastLinear_ENABLED USE_NuFastLinear)
45+
IsTrue(NuSQUIDSLinear_ENABLED USE_NuSQUIDSLinear)
4246
IsTrue(OscProb_ENABLED USE_OscProb)
4347

4448
#Also additional flags
@@ -53,24 +57,17 @@ get_target_property(cpu_compile_options MaCh3CompilerOptions INTERFACE_COMPILE_O
5357
# Join the compile options list into a space-separated string
5458
string(REPLACE ";" " " cpu_compile_options_string "${cpu_compile_options}")
5559

56-
if(USE_CUDAProb3Linear EQUAL 1 AND DAN_USE_GPU EQUAL 1)
57-
cmessage(WARNING "Right now GPU support for CUDAProb3Linear is broken, turning OFF GPU support")
58-
set(DAN_USE_GPU 0)
59-
endif()
60-
6160
#KS: This may seem hacky, but when CMAKE_CUDA_ARCHITECTURES is passed, it's treated as a string rather than a list. Since CMake uses semi-colon-delimited strings to represent lists, we convert it to a proper list to handle CUDA architectures correctly.
6261
set(CMAKE_CUDA_ARCHITECTURES_STRING ${CMAKE_CUDA_ARCHITECTURES})
63-
#string(REPLACE " " ";" CMAKE_CUDA_ARCHITECTURES "${CMAKE_CUDA_ARCHITECTURES}")
6462
string(REPLACE " " ";" CMAKE_CUDA_ARCHITECTURES_STRING "${CMAKE_CUDA_ARCHITECTURES}")
6563

6664
if(NOT DEFINED MaCh3_NuOscillatorBranch)
67-
set(MaCh3_NuOscillatorBranch "v1.2.0")
65+
set(MaCh3_NuOscillatorBranch "v1.2.1")
6866
endif()
6967

7068
#Try adding Oscillator Class
7169
CPMAddPackage(
7270
NAME NuOscillator
73-
VERSION 1.2.0
7471
GITHUB_REPOSITORY "dbarrow257/NuOscillator"
7572
GIT_TAG ${MaCh3_NuOscillatorBranch}
7673
GIT_SHALLOW YES
@@ -83,7 +80,8 @@ CPMAddPackage(
8380
"UseCUDAProb3 ${USE_CUDAProb3}"
8481
"UseProbGPULinear ${USE_ProbGPULinear}"
8582
"UseProb3ppLinear ${USE_Prob3ppLinear}"
86-
"UseNuFASTLinear ${USE_NuFastLiner}"
83+
"UseNuFASTLinear ${USE_NuFastLinear}"
84+
"UseNuSQUIDSLinear ${USE_NuSQUIDSLinear}"
8785
"UseOscProb ${USE_OscProb}"
8886

8987
"NuOscillator_Compiler_Flags ${cpu_compile_options_string}"

0 commit comments

Comments
 (0)
Please sign in to comment.