diff --git a/README.md b/README.md
index d5577a84..abd75e5d 100644
--- a/README.md
+++ b/README.md
@@ -25,8 +25,8 @@ system.
Prerequisites
==========
The following operating systems are supported:
-- Mac OS X (tested on 10.11 with Xcode 6)
-- Fedora 20
+- gcc (at least 4.8)
+- CUDA requires gcc version less than 4.9
*Note*: Xcode 7 includes a newer version of the clang compiler that is not yet
supported.
@@ -61,8 +61,8 @@ downloaded marshalgen from another source, you need to fix this)
2. `mkdir /path/to/GEANT4-GPU/geant4.10.00.p02-build /path/to/GEANT4-GPU/
geant4.10.00.p02-install`
3. `cd /path/to/GEANT4-GPU/geant4.10.00.p02-build`
-4. `cmake -DGEANT4_INSTALL_DATA=ON -DCMAKE_INSTALL_PREFIX=/path/to/GEANT4-GPU/geant4.10.00.p02-install /path/to/GEANT4-GPU/geant4.10.00.p02`
- cmake -DGEANT4_INSTALL_DATA=ON -GEANT4_ENABLE_CUDA=ON -DCMAKE_INSTALL_PREFIX=/u50/reginavp/GEANT4-GPU/geant4.10.02-install /u50/reginavp/GEANT4-GPU/geant4.10.02
+4. `cmake -DGEANT4_INSTALL_DATA=ON -DGEANT4_ENABLE_CUDA=ON -DUSE_SYSTEM_EXPAT=OFF -DCMAKE_INSTALL_PREFIX=/path/to/GEANT4-GPU/geant4.10.00.p02-install /path/to/GEANT4-GPU/geant4.10.00.p02`
+IF installing on McMaster's server, you must add flag `-DCUDA_HOST_COMPILER=/usr/bin/g++`
5. `make -jN` where `N` is the number of processors on your computer
6. `make install`
@@ -80,7 +80,7 @@ geant4.10.00.p02-install`
variables with the correct paths for your install.
**Installing Geant4 on McMaster's Server (no root privileges)**
-1. SSH into one of McMaster's servers (i.e. `ssh yourMacId@gpu1.mcmaster.ca`), account is on a shared drive across all department servers so once you install once you can access it from any one.
+1. SSH into one of McMaster's servers (i.e. `ssh macid@gpu1.mcmaster.ca`), account is on a shared drive across all department servers so once you install once you can access it from any one.
2. Set up your .gitconfig file, ssh keys, and clone the repo in your home folder (path is `/u50/yourMacId/`)
3. You'll need to install cmake, to do this download the latest version onto your regular desktop
4. Copy the tarred file to McMaster's server via SSH: `scp cmake-3.4.0.tar yourMacId@gpu1.mcmaster.ca:/u50/yourMacId/`
diff --git a/geant4.10.02/source/externals/cuda/src/G4ParticleHPVector_CUDA.cu b/geant4.10.02/source/externals/cuda/src/G4ParticleHPVector_CUDA.cu
index 96b48ab8..61bc2935 100644
--- a/geant4.10.02/source/externals/cuda/src/G4ParticleHPVector_CUDA.cu
+++ b/geant4.10.02/source/externals/cuda/src/G4ParticleHPVector_CUDA.cu
@@ -517,11 +517,16 @@ __global__ void GetYForXSec_CUDA(G4ParticleHPDataPoint * theData, G4double e, G4
resultsStruct->y = theData[nEntries - 1].xSec;
}
}
+
G4double G4ParticleHPVector_CUDA::GetXsec(G4double e) {
if (nEntries == 0) {
return 0;
}
+ // TODO try having each thread iterate over X values in array
+
+ // look at StorkNeutronHPCSData - line 295
+
SetValueTo_CUDA<<<1,1>>> (d_singleIntResult, nEntries);
int nBlocks = GetNumBlocks(nEntries);
GetXSecFirstIndex_CUDA<<>> (d_theData, e, d_singleIntResult, nEntries);