Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Linux build issues #15

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

WillNilges
Copy link

I couldn't get the project to compile on my Ubuntu 22.04 machine, so I made a few changes. I don't currently have a Windows system handy to test all this on, so let me know if I broke anything. I could try to fix it next week when I have access to the lab machines again

Was giving a `output file specified twice` error because the Makefile
referenced `-openmp` instead of `-fopenmp`
@palucdev palucdev self-requested a review November 28, 2022 10:03
@@ -20,7 +21,7 @@ list_sources:

build:
mkdir -p ${BUILD_DIR}
nvcc -x cu ${SOURCE_FILES} --std=c++11 -lineinfo -o ${BUILD_DIR}/${EXEC_FILE} -Xcompiler -openmp
nvcc -x cu ${SOURCE_FILES} --std=c++11 -lineinfo -o ${BUILD_DIR}/${EXEC_FILE} -Xcompiler -fopenmp
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-fopenmp flag is throwing alot of warnings when building on Windows. Looks like compiler differences. -fopenmp is connected with gcc, windows nvcc command supports only cl.exe. It will be good to differentiate this flag based upon OS (like in SOURCE_FILE initialization).

@palucdev palucdev assigned palucdev and WillNilges and unassigned palucdev Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants