Mac OS openMP compilation

  • palafox
  • palafox's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 1 month ago #593 by palafox
Hi guys,

I was wondering if somebody had worked out how to run Cassandra on multiple threads in a Mac OS computer. I have so far being able to instal openMP, but so far the documentation for multiple threads mentions that the number of threads is specified hard way in code. I had not being able to find an equivalent command to setenv or export. It's likely that I am doing something wrong. Would you mind sharing your experiences on the topic?

Thank you so much.

P

Please Log in to join the conversation.

More
5 years 1 month ago #594 by emarin
The number of threads is not set hard way in code, but setting the environment variable OMP_NUM_THREADS.

Do you get an error when using either setenv or export? What type of shell do you use?

Please Log in to join the conversation.

  • palafox
  • palafox's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 1 month ago #595 by palafox
Thanks emarin,

I have done that in "regular" Linux clusters. However if I do export OMP_NUM_THREADS, and then list the env variables this is what I get:

@test $ printenv
TERM_PROGRAM=Apple_Terminal
TERM=xterm-256color
SHELL=/bin/bash
CLICOLOR=1
TMPDIR=/var/folders/gb/7r_3wv5s1p3gmf2lx2vklfgw0000gp/T/
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.RcC2Tees4q/Render
TERM_PROGRAM_VERSION=404.1
TERM_SESSION_ID=1D033D5A-9128-4762-88B6-8CBAB8032FEE
USER=ppalafox
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.Hd8SMWc24v/Listeners
LSCOLORS=GxFxCxDxBxegedabagaced
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/munki:/opt/X11/bin:/Users/ppalafox/bin
PWD=/Users/ppalafox/Cassandra_V1.2/Examples/NPT/test
LANG=en_US.UTF-8
XPC_FLAGS=0x0
PS1=\u@\W $
XPC_SERVICE_NAME=0
HOME=/Users/ppalafox
SHLVL=1
LOGNAME=ppalafox
DISPLAY=/private/tmp/com.apple.launchd.GVDb2IrY0m/org.macosforge.xquartz:0
_=/usr/bin/printenv

I don't see the threads. I think this might suggest that something is not properly configured and I am not quite sure what it is.

I used homebrew to install openMP, so I have the clang commands, and I am not quite sure if the problems is with the environment or compiling using the openmp Makefile.

Thanks again for your help and fast response.

Best P

Please Log in to join the conversation.

Time to create page: 0.103 seconds