Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7636937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:48:48+00:00 2026-05-31T07:48:48+00:00

First for all I would like to start by saying I am relatively new

  • 0

First for all I would like to start by saying I am relatively new to openCL and kinda rusty in C++. Also this is the first time I’m asking a question so feel free to correct me or point to something I could improve in the post.

I am interested in creating a project that will create mixed mode assembly dll (CLR Library Project) to be loaded and used by CLR Form applications. The DLL is importing the openCL static library c++ header files (native code) and using a managed wrapper class to use to expose it to the CLR.

However I keep falling into the pitfall of fatal error C1001 which really isn’t much to go through.

1>C:\Program Files (x86)\AMD APP\include\cl\cl.hpp(1270): warning C4290: C++ exception      specification ignored except to indicate a function is not __declspec(nothrow)
1>C:\Program Files (x86)\AMD APP\include\cl\cl.hpp(3708): fatal error C1001: An internal error has occurred in the compiler.
1>(compiler file 'msc1.cpp', line 1420)
1>To work around this problem, try simplifying or changing the program near the locations listed above.
1>Please choose the Technical Support command on the Visual C++ 

Which points to

cl_int enqueueNativeKernel(
void (CL_CALLBACK *userFptr)(void *),  

I am using amd APP SDK v2.6 with the openCL 1.2 specs,Visual Studio 2010 Ultimate and linking the header/lib provided by the SDK. In theory the crossing from unmanaged to unmanaged code shouldn’t be an issue buut since it’s compiled with /CLR I included the #pragmas to indicate the unmanaged passing anyway

#pragma once
#pragma managed(push,off)
#define __NO_STD_STRING
#define __NO_STD_VECTOR
#include <cl\cl.hpp>

#pragma comment(lib,"OpenCL.lib")
#pragma managed(pop)

//rest of code

Always with the dreadful C1001 error,and a Compiler Crash(CL.exe because of c1xx.dll) and no matter how I play with the switches I am at a loss.

Switches are as follows /CLR, /MDd, Optimisation Disabled, EHa for Exception handling. And removing #defines or any of the wrapping code does’t change a thing nor removing the #pragmas.

I should note that the project compiles fine with the C API included instead (CL\cl.h) and I know I could use that instead.

Has anyone else encountered this issue? Or am I doing something terribly wrong?I would really appreciate some info on the matter.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T07:48:49+00:00Added an answer on May 31, 2026 at 7:48 am

    An internal compiler error means that your compiler has crashed. It didn’t find an error in your code; the compiler itself broke. This is due to a bug in the compiler, but if your code is wrong, then that could have helped trigger the bug.

    Since “your code” in this case is not really your code, but OpenCL’s code, it may just be that it can’t be compiled by the C++/CLI compiler.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all, I'm really new to the MVC Asp.Net ideology. I would like
I would like to produce a character list of all of the first letters
First of all, is this possible? If so: What challenges would I encounter in
First, I would to thank everyone for all the help they provide via this
I'll start off by saying I'm a noob with all of this, I have
First, Let me start by saying thatI am aware of other similar questions, like
Let me start off by saying that this is my first real Cocoa app.
I have to start a 3D-Project for mobile platforms. First of all I would
I would like to start off all my git repositories with an empty initial
First of all I would like to apologize for the question itself. I simply

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.