Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

CMake generates MSVC 2015 solutions for ParallelSTL #41

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

cjdb
Copy link
Collaborator

@cjdb cjdb commented Oct 17, 2017

CMake generates an MSVC 2015 x64 ParallelSTL solution that successfully compiles using the configuration in this branch.

@cjdb cjdb requested a review from Ruyk October 17, 2017 09:56
Copy link
Contributor

@Ruyk Ruyk left a comment

Choose a reason for hiding this comment

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

Can you update the main Readme file to reflect the support of Visual Studio builds and with instructions on how use it?

@@ -36,7 +36,10 @@ include_directories("include")

add_subdirectory (src)
add_subdirectory (examples)
add_subdirectory (tests)

if (NOT WIN32)
Copy link
Contributor

Choose a reason for hiding this comment

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

Add a comment explaining why tests are disabled on windows

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Add a comment explaining why tests are disabled on windows

I'm partial to changing this from a Windows thing to all systems. If you don't have the tests pre-installed on any system, then you can't actually run them.

Comment still valid, just needs to be broadened.


endfunction(add_sycl_to_target)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this different from the module in the computecpp-sdk? If so we can possible update the sdk one?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is actually copied from the SDK to here!

Copy link
Contributor

Choose a reason for hiding this comment

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

good then :-)

elseif (targetCxxStandard MATCHES 11)
set(device_compiler_cxx_standard "-std=c++11")
elseif (targetCxxStandard MATCHES 98)
message(FATAL_ERROR "SYCL implementations cannot be compiled using C++98")
Copy link
Contributor

Choose a reason for hiding this comment

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

SYCL implementations -> SYCL applications

@cjdb cjdb self-assigned this Nov 6, 2017
Copy link

@marios-codeplay marios-codeplay left a comment

Choose a reason for hiding this comment

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

Looks good, general comments

README.md Outdated

```bash
sudo apt update && sudo apt upgrade && sudo apt update
sudo apt install build-essentials binutils gdb git flex bison texlive-full

Choose a reason for hiding this comment

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

Why do you need flex and bison?

cd CMake
./bootstrap && make -j 4 && sudo make install
cd ..
sudo apt install ocl-icd-libopencl1 ocl-icd-dev opencl-headers clinfo lsb-core

Choose a reason for hiding this comment

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

clinfo is not required as the user can run computecpp_info to get the OpenCL devices. this is also more relevant as the user can check which devices work with computeCpp

else()
message(FATAL_ERROR "libComputeCpp.so - Not found!")
message(FATAL_ERROR "ComputeCpp Runtime Library - Not found!")

Choose a reason for hiding this comment

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

I would prefer to know what is the file name as well

@DuncanMcBain
Copy link
Contributor

If any comments come up about FindComputeCpp.cmake, could you make a PR to the SDK so we can change it there? Keeps the flow unidirectional which I think will make things a lot cleaner. Thanks!

@cjdb
Copy link
Collaborator Author

cjdb commented Jan 11, 2018

MSVC++ doesn't support C++11. Pending Clang 6 for C++14, as Microsoft don't support Clang 3.9.

@CLAassistant
Copy link

CLAassistant commented Sep 2, 2019

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Christopher Di Bella seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants