kr-colab / ReLERNN

Recombination Landscape Estimation using Recurrent Neural Networks
MIT License
50 stars 12 forks source link

Illegal instruction 4 errors when running the example #54

Open burbrink opened 7 months ago

burbrink commented 7 months ago

Hello,

I am running ReLERNN on a mac with an M1 chip and suspect that this might be the main cause of the following error when running the example file. Is there an update for MacOS instillations with the M1-M3 chips?

Here is the error:

(msprime-env) frankburbrink@Mac-Studio examples % ./example_pipeline_pool.sh
./example_pipeline_pool.sh: line 25: 54699 Illegal instruction: 4 ${SIMULATE} --pool ${POOL} --sampleDepth 20 --genome ${GENOME} --mask ${MASK} --projectDir ${DIR} --assumedMu ${MU} --upperRhoThetaRatio ${URTR} --nTrain 13000 --nVali 2000 --nTest 100 --seed ${SEED} ./example_pipeline_pool.sh: line 34: 54779 Illegal instruction: 4 ${TRAIN} --projectDir ${DIR} --readDepth 20 --maf 0.05 --nEpochs 2 --nValSteps 2 --seed ${SEED} ./example_pipeline_pool.sh: line 40: 54783 Illegal instruction: 4 ${PREDICT} --pool ${POOL} --projectDir ${DIR} --seed ${SEED} ./example_pipeline_pool.sh: line 47: 54788 Illegal instruction: 4 ${BSCORRECT} --projectDir ${DIR} --nSlice 2 --nReps 2 --seed ${SEED}

Thanks for any advice!

Frank

andrewkern commented 7 months ago

ugh that's not great... how did you install?

burbrink commented 7 months ago

This was for a conda install, which was a bit difficult (msprime wheel issues). However, I did eventually get a clean Conda install.__Frank T. Burbrink, Ph.D.Chair, Division of Vertebrate ZoologyCurator-in-ChargeDepartment of HerpetologyAmerican Museum of Natural HistoryCentral Park West at 79th StreetNew York, NY 10024-5192Website: https://sites.google.com/view/frank-burbrink-website/ Professor, Richard Gilder Graduate School, AMNHAdjunct Professor, Department of Ecology, Evolution and Environmental Biology, Columbia University, New YorkAdjunct Professor of Biology, City University of New York, New YorkOn May 7, 2024, at 4:31 PM, Andrew Kern @.***> wrote: ugh that's not great... how did you install?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

andrewkern commented 6 months ago

what happens if you install using pip install .? be sure to be using a tensorflow version thats <=2.15.0