Skip to content

[CUDA] Support for --extended-lambda seems to not exist in DPCT #2875

Open
@abagusetty

Description

@abagusetty

Describe the bug

From looking at the source code, there seems to support --expt-extended-lambda but now CUDA has deprecated the above and moved to --extended-lambda. I was wondering if this can be added too to the recognized flags in DPCT.

DPCT Error while doing this command: dpct --extra-arg="-I __CUDA_ARCH__=800" -p ./llama.cpp/build --enable-profiling --use-experimental-features=all --in-root=./llama.cpp --out-root=./dpct_out --migrate-build-script=CMake --process-all


error: unknown argument: '-extended-lambda'

The compilation command from the database on the CUDA side:

 "command": "nvcc -c -DGGML_BACKEND_BUILD -DGGML_BACKEND_SHARED -DGGML_CUDA_PEER_MAX_BATCH_SIZE=128 -DGGML_CUDA_USE_GRAPHS -DGGML_SCHED_MAX_COPIES=4 -DGGML_SHARED -D_GNU_SOURCE -D_XOPEN_SOURCE=600 -Dggml_cuda_EXPORTS -I/lus/eagle/projects/NWChemEx_aesp/abagusetty/llama-cuda-to-sycl/llama.cpp/ggml/src/ggml-cuda/.. -I/lus/eagle/projects/NWChemEx_aesp/abagusetty/llama-cuda-to-sycl/llama.cpp/ggml/src/../include -isystem /opt/nvidia/hpc_sdk/Linux_x86_64/23.9/cuda/12.2/include -O3 -DNDEBUG -std=c++17 -extended-lambda -Wmissing-declarations -Wmissing-noreturn -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-array-bounds -Wno-pedantic -o CMakeFiles/ggml-cuda.dir/template-instances/fattn-vec-f16-instance-hs256-f16-f16.cu.o -D__CUDACC__=1 /lus/eagle/projects/NWChemEx_aesp/abagusetty/llama-cuda-to-sycl/llama.cpp/ggml/src/ggml-cuda/template-instances/fattn-vec-f16-instance-hs256-f16-f16.cu",

To reproduce

  1. Include code snippet as short as possible
  2. Specify the command which should be used to compile the program
  3. Specify the command which should be used to launch the program
  4. Indicate what is wrong and what was expected

Environment

  • OS: [e.g Windows/Linux]
  • Target device and vendor: [e.g. Nvidia GPU]
  • DPC++ version: [e.g. commit hash or output of clang++ --version]
  • Dependencies version: [e.g. the output of nvidia-smi and sycl-ls --verbose]

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions