Skip to content

Cannot create library using dcompute #62

Description

I created following structure:

.
├── dcompute-app
│   ├── dub.sdl
│   ├── dub.selections.json
│   └── source
│       └── app.d
└── dcompute-lib
    ├── dub.sdl
    ├── dub.selections.json
    └── source
        └── dcomputelibrary
            ├── foo.d // to prevent issue #61 
            └── testkernel.d

dcompute-app depends on dcompute-lib.

Under this condition, I run dub run --compiler=ldc2.
Then the content of .dub/obj/kernels_cuda210_64.ptx becomes almost empty:

	.text
	.file	"dcomputeTargetCUDA"

	.section	".note.GNU-stack","",@progbits

I expected the compiled code of testkernel.d is in it.

This is because ptx is overwritten at dcompute-app build once successfully created at dcompute-lib's build.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions