Skip to content

Fix Linux build issues#15

Open
WillNilges wants to merge 4 commits intopalucdev:masterfrom
WillNilges:willnilges/building
Open

Fix Linux build issues#15
WillNilges wants to merge 4 commits intopalucdev:masterfrom
WillNilges:willnilges/building

Conversation

@WillNilges
Copy link
Copy Markdown

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
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
Copy Markdown
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