Difference between revisions of "Compiling hcana with cmake"

From HallCWiki
Jump to navigationJump to search
(Created page with "Suggest by Ole Hansen for using modules for root and Podd then cmake to compile hcana module use /group/halla/modulefiles module load root Then build hcana. Better yet: u...")
 
Line 2: Line 2:
 
then cmake to compile hcana
 
then cmake to compile hcana
  
 
+
module purge
 
module use /group/halla/modulefiles
 
module use /group/halla/modulefiles
  
module load root
 
  
 
Then build hcana.
 
Then build hcana.
Line 12: Line 11:
  
 
module load analyzer
 
module load analyzer
 +
module load cmake
  
 
You should then configure hcana with cmake, adding the flag -DHCANA_BUILTIN_PODD=OFF. For example something along these lines (untested):
 
You should then configure hcana with cmake, adding the flag -DHCANA_BUILTIN_PODD=OFF. For example something along these lines (untested):

Revision as of 07:52, 8 July 2024

Suggest by Ole Hansen for using modules for root and Podd then cmake to compile hcana

module purge module use /group/halla/modulefiles


Then build hcana.

Better yet: use the pre-built Podd (official version 1.7.0). To do so, instead of, or in addition to, loading the 'root' module, do

module load analyzer module load cmake

You should then configure hcana with cmake, adding the flag -DHCANA_BUILTIN_PODD=OFF. For example something along these lines (untested):

git clone https://github.com/JeffersonLab/hcana.git

cmake -B hcana-build -S hcana -DHCANA_BUILTIN_PODD=OFF -DCMAKE_INSTALL_PREFIX=$HOME/apps/hcana

cmake --build hcana-build -- -j4

cmake --install hcana-build