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

--arch=KNL with Intel 2016 build failure #349

Closed
tomdeakin opened this issue Jul 6, 2016 · 2 comments
Closed

--arch=KNL with Intel 2016 build failure #349

tomdeakin opened this issue Jul 6, 2016 · 2 comments

Comments

@tomdeakin
Copy link

The following patch is required to Kokkos to build for KNL using the Intel 2016 compilers. The build complains that error: bad value (knl) for -march= switch

diff --git a/Makefile.kokkos b/Makefile.kokkos
index 2ed1516..aac1d96 100644
--- a/Makefile.kokkos
+++ b/Makefile.kokkos
@@ -337,8 +337,8 @@ ifeq ($(KOKKOS_INTERNAL_USE_ARCH_AVX512MIC), 1)

                        else
                                # Asssume that this is really a GNU compiler
-                               KOKKOS_CXXFLAGS += -march=knl
-                               KOKKOS_LDFLAGS  += -march=knl
+                               #KOKKOS_CXXFLAGS += -march=knl
+                               #KOKKOS_LDFLAGS  += -march=knl
                        endif
                endif
        endif
@nmhamster
Copy link
Contributor

You have fallen into the GNU handler, not Intel so something else is incorrect here.

@tomdeakin
Copy link
Author

Ah, my bad.. I needed to set the --compiler=icpc flag. Closing as not an issue..

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

No branches or pull requests

2 participants